Uploaded image for project: 'Tajo'
  1. Tajo
  2. TAJO-2110

Fix incorrect DateTime and remove hard coded tests

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 0.11.0, 0.12.0
    • Fix Version/s: 0.12.0, 0.11.3
    • Component/s: Data Type, Storage, Unit Test
    • Labels:
      None

      Description

      Currently, Most DateTime tests are not work correctly. because timezone is hardcode to the GMT for testing.
      if you run CTAS, the result data will be incorrect. we should remove the hardcoded timezone in TajoTestingCluster

      Here is some examples:

      Example 1

      if you run CTAS, the result data will be incorrect
      
      default> create table test1 (col1 TIMESTAMP);
      default> insert overwrite into test1 select '2016-04-04 00:00:00'::TIMESTAMP;
      default> select * from test1;
      col1
      -------------------------------
      2016-04-04 00:00:00
      (1 rows, 0.057 sec, 0 B selected)
      default> create table test2 as select * from test1;
      [=========================================>] 100%  0.105 sec
      (1 rows, 0.105 sec, 20 B inserted)
      default> select * from test2;
      col1
      -------------------------------
      2016-04-03 15:00:00
      

      Example 2

      default> select '2016-04-04 01:00:00'::TIMESTAMP - interval '1 hour';
      ?minus
      -------------------------------
      2016-04-04 09:00:00
      (1 rows, 0.005 sec, 0 B selected)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jhkim Jinho Kim
                Reporter:
                jhkim Jinho Kim
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: