Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-6544

Calcite's bigquery Dialect date_add and date_sub functions allow 0000 and BC as results

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Bug
    • 1.37.0
    • 1.38.0
    • core
    • None

    Description

      calciteļ¼š

      f.checkScalar("date_add(date '0001-01-01', interval '-367' day)",
              "000/-12-31",
              "DATE NOT NULL");
      

      bigquery

      date_add(date '0001-01-01', interval '-367' day)
      
      Adding -367 DAY to date 0001-01-01 causes overflow
      

      More details: https://issues.apache.org/jira/browse/CALCITE-6536

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              caicancai Caican Cai
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: