kosiew commented on code in PR #27336:
URL: https://github.com/apache/datafusion/pull/27336#discussion_r4767980425
##########
datafusion/sqllogictest/test_files/datetime/arith_interval_double.slt:
##########
@@ -22,8 +22,11 @@ query error Invalid interval arithmetic operation:
Interval\(MonthDayNano\) \* I
SELECT interval '1 day' * 21
-query error DataFusion error: Arrow error: Invalid argument error: Invalid
interval arithmetic operation: Interval\(MonthDayNano\) \* Float64
+query error
SELECT interval '1 hour' * 3.5
+----
+DataFusion error: Arrow error: Invalid argument error: Invalid interval
arithmetic operation: Interval(MonthDayNano) * Float64
Review Comment:
Nit: Could we keep two blank lines before the next `query error` instead of
three? Two are sufficient to terminate the literal block.
##########
datafusion/sqllogictest/test_files/datetime/date_part.slt:
##########
@@ -2546,14 +2570,22 @@ statement ok
DROP TABLE tz_offsets;
# These parts are only defined for timestamps that carry a timezone
-query error DataFusion error: Execution error: Date part 'timezone' is not
supported for timezone\-naive timestamps, got Timestamp\(ns\)
+query error
SELECT date_part('timezone', TIMESTAMP '2024-07-01T12:00:00')
+----
+DataFusion error: Execution error: Date part 'timezone' is not supported for
timezone-naive timestamps, got Timestamp(ns)
-query error DataFusion error: Execution error: Date part 'timezone_hour' is
not supported for timezone\-naive timestamps, got Timestamp\(ns\)
+
+query error
SELECT EXTRACT(TIMEZONE_HOUR FROM TIMESTAMP '2024-07-01T12:00:00')
+----
+DataFusion error: Execution error: Date part 'timezone_hour' is not supported
for timezone-naive timestamps, got Timestamp(ns)
+
query error DataFusion error: Execution error: Date part 'timezone' is only
supported for timestamps with a timezone, got Date32
SELECT date_part('timezone', DATE '2024-07-01')
-query error DataFusion error: Execution error: Date part 'timezone_minute' is
only supported for timestamps with a timezone, got Interval\(MonthDayNano\)
+query error
Review Comment:
Consider converting the adjacent `Date32` error expectation in a follow-up
for consistency across the four timezone rejection cases. The equivalent
literal assertion passed locally.
--
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]