kasakrisz commented on code in PR #5505:
URL: https://github.com/apache/hive/pull/5505#discussion_r1922452038


##########
ql/src/test/queries/clientpositive/distributeby.q:
##########
@@ -0,0 +1,24 @@
+create table t1 (a string, b int);
+
+insert into t1 values ('2014-03-14 10:10:12', 10);
+
+-- distribute by
+explain cbo
+select * from t1 where a between date_add('2014-03-14', -1) and '2014-03-14' 
distribute by a;
+explain
+select * from t1 where a between date_add('2014-03-14', -1) and '2014-03-14' 
distribute by a;
+select * from t1 where a between date_add('2014-03-14', -1) and '2014-03-14' 
distribute by a;
+
+-- distribute by and sort by
+explain cbo
+select * from t1 distribute by a, b sort by a;

Review Comment:
   we already have some test
   
https://github.com/apache/hive/blob/master/ql/src/test/queries/clientpositive/sort.q
   
https://github.com/apache/hive/blob/5146dbad59c8e4116ae3bbfe615b69c4848681ad/ql/src/test/queries/clientpositive/sort_acid.q#L13-L15



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to