Skip to content

Add temporal type tests for each synchronous cursor #1213

Closed

Description

@laughingman7743

Part of #1212.

Summary

Add integration tests that check each synchronous cursor's temporal values against the contract in #1212, using live Athena output.

Scope

  • Patterns. The output depends on the read path, which is UNLOAD or CSV. The asynchronous cursors and managed results return the same values as the synchronous cursors (measured for Test the temporal types of each synchronous cursor #1226), so they are not repeated.
    • Each of Cursor, S3FSCursor, PandasCursor, ArrowCursor, and PolarsCursor gets one temporal test.
    • The test is parametrized by unload where the cursor supports it.
  • One query per test. The formats to check are columns of one SELECT:
    • 0 to 12 fractional digits.
    • Years 1, 1600, 2300, and 9999.
    • NULL in a mixed column and in an all-NULL column.
    • UTC, named zones, and offsets, for date, time, and their time zone variants.
  • Only output that Athena returns. No synthetic values, rewritten Parquet, or simulated time zone databases. Years outside 1 to 9999 are out of scope (Define and enforce the contract for Athena temporal types across cursors #1212).
  • Expected values are written by hand from the contract. The current gaps are marked with the sub-issue that fixes them.

Activity

  1. laughingman7743 commented on Oct 16, 2026

    @laughingman7743
    MemberAuthor

    The time zone cases are now decided in #1220 (comment). Expected results for the corpus, for fetch methods and PandasCursor (Arrow and Polars keep the text):

    Tz rule differences between Athena and Python (for example America/Asuncion from 2026) cannot be detected, so they are a documentation item in #1221, not a test case.

  2. changed the title [-]Add conformance tests for the temporal type contract[/-] [+]Add temporal type tests for each synchronous cursor[/+] on Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions