You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Native engine crashes on literal DateTrunc and TimestampTrunc #3342
When Spark's ConstantFolding optimizer rule is disabled, all-literal trunc() and date_trunc() calls reach the native engine, which crashes with:
Invalid input to function DateTrunc. Expected (PrimitiveArray<Date32>, Scalar) or (PrimitiveArray<Date32>, StringArray)
Invalid input to function TimestampTrunc. Expected (PrimitiveArray<TimestampMicrosecondType>, Scalar, String) or (PrimitiveArray<TimestampMicrosecondType>, StringArray, String)
The native functions expect at least one array input but receive all scalars.
Activity
Add literal argument tests for all SQL file expression tests
0lai0 commentedon Mar 2, 2026
take