Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-3736

Allow date formatted string literals to be parsed as timestamps

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 8.12
    • None
    • Query Engine
    • None

      For consistency with most major vendors we should support allowing date literals to be parsed as timestamps. For example:

      timestamp_col > '2001-01-01'

      which would prevent the predicate from being resolved as a string comparison.

            [TEIID-3736] Allow date formatted string literals to be parsed as timestamps

            Added by directly resolving the string literals to constants so that the general string to timestamp conversion would remain the same. This is different than the other resolving logic in that it does alter the string form of the query.

            Steven Hawkins added a comment - Added by directly resolving the string literals to constants so that the general string to timestamp conversion would remain the same. This is different than the other resolving logic in that it does alter the string form of the query.

              rhn-engineering-shawkins Steven Hawkins
              rhn-engineering-shawkins Steven Hawkins
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: