Skip to content

[C++][FlightSQL][ODBC] Support years before 1400 for date and timestamp data #46978

Closed as not planned

Description

@alinaliBQ

Describe the enhancement requested

Acceptance Criteria:

  • The ODBC driver should support years before 1400, such as date 0001-01-01 ... for date and timestamp data
  • When querying dates before year 1400, we should not have errors like Year is out of valid range: 1400..9999

Component(s)

C++, FlightRPC

Activity

  1. changed the title [-][C++][FlightSQL][ODBC] Support years before 1400 for date, time, and timestamp data[/-] [+][C++][FlightSQL][ODBC] Support years before 1400 for date and timestamp data[/+] on Jul 2, 2025
  2. alinaliBQ commented on Jul 7, 2025

    @alinaliBQ
    CollaboratorAuthor

    For ODBC, we ported the fix at dremio/flightsql-odbc@d44d862 in #46099 which uses boost::posix_time::to_tm(boost::posix_time::from_time_t(value)), and the boost date time library doesn't support years before 1400, which is documented in boost docs.

    Special Values

    The date_time library uses five special_values. They are:

    not_a_date_time | neg_infin | pos_infin | min_date_time | max_date_time -- | -- | -- | -- | --

    The default set of strings used to represent these types are: "not-a-date-time", "-infinity", "+infinity", "minimum-date-time", "maximum-date-time". When output, the min_date-time and max_date_time appear as normal date/time representations: "1400-Jan-01" and "9999-Dec-31" repectively.

  3. github-actions commented on Jul 9, 2026

    @github-actions

    This issue has been marked as stale because it has had no activity in the past 365 days. Please remove the stale label or comment below, or this issue will be closed in 14 days. If this improvement is still desired but has no current owner, please add the 'Status: needs champion' label.

  4. added
    Status: stale-warning
    on Jul 9, 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

    Labels

    Component: C++Component: FlightRPCStatus: stale-warningType: enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions