Uh oh!
There was an error while loading. Please reload this page.
Conversation
…ooked up by session state's catalog.
…d instead of Some('default')…ad of NoSuchTableException
cloud-fan
commented
Jan 8, 2018
ok to test |
cloud-fan
commented
Jan 8, 2018
what's the error message after this patch? |
SparkQA
commented
Jan 8, 2018
Test build #85781 has finished for PR 20177 at commit
|
The error message after the patch: |
cloud-fan
commented
Jan 19, 2018
can you fix the test? |
| assertNoSuchTable(s"SHOW PARTITIONS $viewName") | ||
| assertNoSuchTable(s"ANALYZE TABLE $viewName COMPUTE STATISTICS") | ||
| assertNoSuchTable(s"ANALYZE TABLE $viewName COMPUTE STATISTICS FOR COLUMNS id") | ||
| assertAnalysisException(s"ANALYZE TABLE $viewName COMPUTE STATISTICS") |
There was a problem hiding this comment.
We should also check the error message to ensure the AnalysisException is not thrown from elsewhere.
We shall also update |
…ands - AnalyzeColum and AnalyzePartition. Fix tests to check if the error messages are proper.
SparkQA
commented
Jan 21, 2018
Test build #86424 has finished for PR 20177 at commit
|
SparkQA
commented
Jan 21, 2018
Test build #86425 has finished for PR 20177 at commit
|
ghost
commented
Jan 21, 2018
I updated AnalyzePartitionCommand and AnalyzeColumnCommand. I noticed another one - According to SQLViewSuite, calling truncate on view must throw NoSuchTable, where as in TruncateTableCommand class I noticed this A bug? |
SparkQA
commented
Jan 21, 2018
Test build #86426 has finished for PR 20177 at commit
|
cloud-fan
commented
Jan 22, 2018
actually it's not really useful to have |
ghost
commented
Jan 23, 2018
I did't understand why the build is getting killed. |
cloud-fan
commented
Jan 23, 2018
retest this please |
SparkQA
commented
Jan 23, 2018
Test build #86506 has finished for PR 20177 at commit
|
jiangxb1987
commented
Jan 23, 2018
Could you also add test cases that cover ANALYZE PARTITION and ANALYZE COLUMN queries? |
…rtition on view throws AnalyzeException telling that it isn't supported on views.
Done. Added test cases to cover ANALYZE PARTITION and ANALYZE COLUMN queries. |
SparkQA
commented
Jan 30, 2018
Test build #86791 has finished for PR 20177 at commit
|
gatorsmile
commented
May 18, 2018
ok to test |
gatorsmile
commented
May 18, 2018
cc @wzhfy |
SparkQA
commented
May 19, 2018
Test build #90807 has finished for PR 20177 at commit
|
AmplabJenkins
commented
Jun 9, 2018
Can one of the admins verify this patch? |
Closesapache#17422Closesapache#17619Closesapache#18034Closesapache#18229Closesapache#18268Closesapache#17973Closesapache#18125Closesapache#18918Closesapache#19274Closesapache#19456Closesapache#19510Closesapache#19420Closesapache#20090Closesapache#20177Closesapache#20304Closesapache#20319Closesapache#20543Closesapache#20437Closesapache#21261Closesapache#21726Closesapache#14653Closesapache#13143Closesapache#17894Closesapache#19758Closesapache#12951Closesapache#17092Closesapache#21240Closesapache#16910Closesapache#12904Closesapache#21731Closesapache#21095 Added: Closesapache#19233Closesapache#20100Closesapache#21453Closesapache#21455Closesapache#18477 Added: Closesapache#21812Closesapache#21787 Author: hyukjinkwon <gurwls223@apache.org> Closesapache#21781 from HyukjinKwon/closing-prs.
What changes were proposed in this pull request?
Previously running ANALYZE on temporary views produced NoSuchTableException even though the view was present. It is misleading. So it has to be changed to throw AnalysisException since it comes in the analysis part.
How was this patch tested?
Some unit tests were fixed to intercept AnalysisException instead of NoSuchTableException.