Skip to content

Spark SQL test failures due to timestamp mismatch when LocalTableScan is native #2720

Closed

Description

@andygrove

Describe the bug

I saw this in Spark SQL tests with spark.comet.sparkToColumnar.enabled=true.

2025-11-06T19:59:48.4097661Z [info] - sorting on TimestampType with nullable=true, sortOrder=List('a ASC NULLS FIRST) *** FAILED *** (72 milliseconds)
2025-11-06T19:59:48.4100453Z [info]   Exception thrown while executing Spark plan to calculate expected answer:
2025-11-06T19:59:48.4101154Z [info]    !ReferenceSort ['a ASC NULLS FIRST], true
2025-11-06T19:59:48.4101660Z [info]   +- Scan ExistingRDD[a#316981]
2025-11-06T19:59:48.4102044Z [info]   
2025-11-06T19:59:48.4102324Z [info]    == Exception ==
2025-11-06T19:59:48.4104862Z [info]    org.apache.spark.SparkException: Job aborted due to stage failure: Task 1 in stage 1190.0 failed 1 times, most recent failure: Lost task 1.0 in stage 1190.0 (TID 3180) (d295a5912a94 executor driver): org.apache.comet.CometNativeException: Fail to process Arrow array with reason: Invalid argument error: RowConverter column schema mismatch, expected Timestamp(Microsecond, Some("America/Los_Angeles")) got Timestamp(Microsecond, Some("UTC")).
2025-11-08T19:38:36.1187839Z [info] - literal argument of named parameter in `sql()` *** FAILED *** (200 milliseconds)
2025-11-08T19:38:36.1190376Z [info]   org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in stage 84.0 failed 1 times, most recent failure: Lost task 0.0 in stage 84.0 (TID 96) (60d7cdca4a54 executor driver): org.apache.comet.CometNativeException: Invalid argument error: Invalid comparison operation: Timestamp(Microsecond, Some("America/Los_Angeles")) < Timestamp(Microsecond, Some("UTC"))

Steps to reproduce

No response

Expected behavior

No response

Additional context

No response

Activity

  1. added
    bug
    on Nov 6, 2025
  2. andygrove commented on Nov 6, 2025

    @andygrove
    MemberAuthor

    We see the same issue in #2649

  3. added this to the 0.12.0 milestone on Nov 7, 2025
  4. changed the title [-]Invalid argument error: RowConverter column schema mismatch with timezones[/-] [+]Spark SQL test failures due to timestamp mismatch when LocalTableScan is native[/+] on Nov 8, 2025
  5. modified the milestones: 0.12.0, 0.13.0 on Nov 9, 2025
  6. modified the milestones: 0.13.0, 0.14.0 on Jan 30, 2026
  7. added
    spark sql tests
    on Feb 9, 2026
  8. removed this from the 0.14.0 milestone on Mar 12, 2026
  9. added this to the 0.15.0 milestone on Mar 27, 2026
  10. andygrove commented on Mar 27, 2026

    @andygrove
    MemberAuthor

    LocalTableScan is not accelerated by Comet by default and is opt-in and clearly documented as not compatible. I will remove bug label and change to enhancement.

  11. added
    enhancement
    and removed
    bug
    on Mar 27, 2026
  12. added 2 commits that reference this issue on Apr 1, 2026
    24e089e
    19196df
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    correctnessenhancementspark sql tests

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions