kasakrisz commented on code in PR #5505:
URL: https://github.com/apache/hive/pull/5505#discussion_r1922446139
##########
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;
Review Comment:
I haven't found any test for `distribute by` only but this one is for
testing if the type econvesrion happens or not. It is not necessary though
since we have test for type conversion.
--
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]