Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-19804

Sql. Fix timestamp|datetime processing errors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.0.0-beta1
    • None
    • sql

    Description

      Some cases are failed:

      case 1:

      CREATE TABLE IF NOT EXISTS timestamp (t TIMESTAMP);
      
      INSERT INTO timestamp VALUES ('2008-01-01 00:00:01'), (NULL), ('2007-01-01 00:00:01')
      

      Values passed to VALUES operator must have compatible types

      case 2:
      SELECT timestamp '2017-07-23 13:10:11';

      Not expected result at: (test_timestamp.test_ignore:15). [row=0, col=0, expected=2017-07-23 13:10:11, actual=2017-07-23T13:10:11]

      case 3:
      SELECT TIMESTAMP '2001-04-20 14:42:11.12300000000000000000';

      Not expected result at: (test_timestamp_ms.test_ignore:6). [row=0, col=0, expected=2001-04-20 14:42:11.123, actual=2001-04-20T14:42:11.123]

      Attachments

        Activity

          People

            Unassigned Unassigned
            zstan Evgeny Stanilovsky
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m