Uploaded image for project: 'Apache IoTDB'
  1. Apache IoTDB
  2. IOTDB-1239

Incorrect datetime value can be inserted into iotdb successfully.

    XMLWordPrintableJSON

Details

    • 2022-5-StorageEngine

    Description

      master branch.

      commit id 5fcff40f2299caeb0c8a9ae42f68bc18ecf8fee7 .

       

      SET STORAGE GROUP TO root.sg
      CREATE TIMESERIES root.sg.d1.s2 WITH DATATYPE=DOUBLE, ENCODING=PLAIN
      insert into root.sg.d1(time,s2 ) values (1574179200000000,8.76);

      IoTDB> select * from root.sg.d1;
      ------------------------------------------+

      Time root.sg.d1.s2

      ------------------------------------------+

      +51853-10-03T00:00:.00000+08:00 8.76

      ------------------------------------------+

      should be give an error :

      Incorrect datetime value  ....

      IoTDB> select * from root.sg.d1 where time=51853-10-03T00:00:.00000+08:00
      Msg: 401: Error occurred while parsing SQL to physical plan: line 1:36 extraneous input '51853-10-03T00:00:' expecting {NOW, TRUE, FALSE, '-', '.', 'NaN', INT, EXPONENT, DATETIME, DOUBLE_QUOTE_STRING_LITERAL, SINGLE_QUOTE_STRING_LITERAL}

       

      Attachments

        1. image-2021-04-29-14-54-43-270.png
          37 kB
          刘珍
        2. screenshot-1.png
          85 kB
          刘珍

        Activity

          People

            haonan Haonan Hou
            刘珍 刘珍
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: