Add native analyze e2e tests#20028
Conversation
|
The Will try to add hive.allow-drop-table property to the config and test it out. |
4629547 to
82b37f3
Compare
3757766 to
e3739ab
Compare
There was a problem hiding this comment.
"nation" is a very tiny table for this kind of test. But its probably sufficient to test the correctness of this work.
There was a problem hiding this comment.
Might be worth adding a comment about the results returned by ANALYZE for this query. Is one of the arrays an empty result ?
There was a problem hiding this comment.
I dont' think so. Here are the partitions would look like:
presto:tpch> select * from "tmpregion$partitions";
regionkey | nationkey
-----------+-----------
2 | 12
2 | 8
2 | 9
2 | 18
2 | 21
4 | 13
4 | 11
4 | 20
4 | 10
4 | 4
3 | 23
3 | 22
3 | 6
3 | 7
3 | 19
1 | 24
1 | 1
1 | 17
1 | 2
1 | 3
0 | 15
0 | 14
0 | 0
0 | 16
0 | 5
(25 rows)
Added the output in the comments.
|
Please rebase with #20025 and check. |
602dde8 to
2e07c32
Compare
|
There seems to be an aggregate function missing required by analyze command: When I test basic table with a single integer column, analyze works fine on native cluster but if the table has a varchar column, analyze command fails. Looks like I need to create a table with multiple column types like Dates, Varchars, Ints, floats and decimals. |
|
Closing this PR. Adding tests as part of this #20055 |
Added tests to verify
ANALYZEcommand and compare stats between Prestissimo and Presto for the test tables.Resolves this #19922