okumin commented on code in PR #5837:
URL: https://github.com/apache/hive/pull/5837#discussion_r2120962729


##########
ql/src/test/queries/clientpositive/udf_dayofweek_with_tz.q:
##########
@@ -0,0 +1,31 @@
+--! qt:timezone:Asia/Shanghai
+
+CREATE EXTERNAL TABLE dayOfWeek_test(
+`fund_code` string,
+`test_date` string
+);
+
+INSERT INTO dayOfWeek_test(fund_code,test_date)
+values('SEC016210079','2023-04-13');
+
+set hive.vectorized.execution.enabled=false;
+
+SELECT fund_code,
+ test_date,
+ dayofweek(test_date) AS SR,
+ CASE
+     WHEN dayofweek(test_date) = 1 THEN 7
+     ELSE dayofweek(test_date) - 1
+ END AS week_day
+FROM dayOfWeek_test; 
+
+set hive.vectorized.execution.enabled=true;
+
+SELECT fund_code,
+ test_date,
+ dayofweek(test_date) AS SR,
+ CASE
+     WHEN dayofweek(test_date) = 1 THEN 7
+     ELSE dayofweek(test_date) - 1
+ END AS week_day
+FROM dayOfWeek_test; 

Review Comment:
   I used TestMiniLlapLocalCliDriver, and it is something, which LLAP can't 
reproduce. I made sure the issue happens with TestCliDriver. Thanks



-- 
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: gitbox-unsubscr...@hive.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org
For additional commands, e-mail: gitbox-h...@hive.apache.org

Reply via email to