Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-5614 Serialize Sarg objects to and from JSON
  3. CALCITE-5755

Add to Sarg serialization/deserialization TimestampString

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.35.0
    • None

    Description

      Currently Sarg serialization/deserialization allows for 6 types https://github.com/apache/calcite/blob/967bb5acc5448bc8d6ee9b9f5fa3c5f0d71405c2/core/src/main/java/org/apache/calcite/rel/externalize/RelJson.java#L113 and doesn't include TimestampString

       

      Currently when a timestamp string comes in, it will not throw an error, but will deserialize incorrectly as a Date set to the epoch beginning.

      Desired outcome: Be able to serialize / deserialize SEARCH operators that contain Timestamp string literals.

       

       

      Attachments

        Issue Links

          Activity

            People

              oliverlee Oliver Lee
              oliverlee Oliver Lee
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: