You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by Navis Ryu <na...@nexr.com> on 2014/10/30 01:52:11 UTC

Review Request 27367: support ISO-2012 timestamp literals

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/27367/
-----------------------------------------------------------

Review request for hive.


Bugs: HIVE-3187
    https://issues.apache.org/jira/browse/HIVE-3187


Repository: hive-git


Description
-------

Enable the JDBC driver/Hive SQL engine to accept JDBC canonical or ISO-SQL 20xx Timestamp literals

ie.
select 1 from cert.tversion tversion where timestamp '1989-01-01 10:20:30.000000000' <> timestamp '2000-12-31 12:15:30.123000000'

instead of
unix_timestamp('.....)


Diffs
-----

  ql/src/java/org/apache/hadoop/hive/ql/parse/HiveParser.g c903e8f 
  ql/src/java/org/apache/hadoop/hive/ql/parse/IdentifiersParser.g 13d5255 
  ql/src/java/org/apache/hadoop/hive/ql/parse/TypeCheckProcFactory.java e065983 
  ql/src/test/queries/clientnegative/timestamp_literal.q PRE-CREATION 
  ql/src/test/queries/clientpositive/timestamp_literal.q PRE-CREATION 
  ql/src/test/results/clientnegative/date_literal2.q.out 82f6425 
  ql/src/test/results/clientnegative/date_literal3.q.out 82f6425 
  ql/src/test/results/clientnegative/illegal_partition_type4.q.out e388086 
  ql/src/test/results/clientnegative/timestamp_literal.q.out PRE-CREATION 
  ql/src/test/results/clientpositive/timestamp_literal.q.out PRE-CREATION 

Diff: https://reviews.apache.org/r/27367/diff/


Testing
-------


Thanks,

Navis Ryu


Re: Review Request 27367: support ISO-2012 timestamp literals

Posted by Jason Dere <jd...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/27367/#review59279
-----------------------------------------------------------


I think this looks good. Would you be able to add a test using timestamp literals as a partition column? Just to make sure we don't get a repeat of HIVE-4928 for timestamp.

- Jason Dere


On Oct. 30, 2014, 12:52 a.m., Navis Ryu wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/27367/
> -----------------------------------------------------------
> 
> (Updated Oct. 30, 2014, 12:52 a.m.)
> 
> 
> Review request for hive.
> 
> 
> Bugs: HIVE-3187
>     https://issues.apache.org/jira/browse/HIVE-3187
> 
> 
> Repository: hive-git
> 
> 
> Description
> -------
> 
> Enable the JDBC driver/Hive SQL engine to accept JDBC canonical or ISO-SQL 20xx Timestamp literals
> 
> ie.
> select 1 from cert.tversion tversion where timestamp '1989-01-01 10:20:30.000000000' <> timestamp '2000-12-31 12:15:30.123000000'
> 
> instead of
> unix_timestamp('.....)
> 
> 
> Diffs
> -----
> 
>   ql/src/java/org/apache/hadoop/hive/ql/parse/HiveParser.g c903e8f 
>   ql/src/java/org/apache/hadoop/hive/ql/parse/IdentifiersParser.g 13d5255 
>   ql/src/java/org/apache/hadoop/hive/ql/parse/TypeCheckProcFactory.java e065983 
>   ql/src/test/queries/clientnegative/timestamp_literal.q PRE-CREATION 
>   ql/src/test/queries/clientpositive/timestamp_literal.q PRE-CREATION 
>   ql/src/test/results/clientnegative/date_literal2.q.out 82f6425 
>   ql/src/test/results/clientnegative/date_literal3.q.out 82f6425 
>   ql/src/test/results/clientnegative/illegal_partition_type4.q.out e388086 
>   ql/src/test/results/clientnegative/timestamp_literal.q.out PRE-CREATION 
>   ql/src/test/results/clientpositive/timestamp_literal.q.out PRE-CREATION 
> 
> Diff: https://reviews.apache.org/r/27367/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Navis Ryu
> 
>


Re: Review Request 27367: support ISO-2012 timestamp literals

Posted by Navis Ryu <na...@nexr.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/27367/
-----------------------------------------------------------

(Updated Oct. 31, 2014, 5:03 a.m.)


Review request for hive.


Changes
-------

Added more tests (shamelessly copied from partition_date.q)
Currently, direct SQL cannot be applied (tried but casting to timestamp is not supported in some database(mysql, etc.))


Bugs: HIVE-3187
    https://issues.apache.org/jira/browse/HIVE-3187


Repository: hive-git


Description
-------

Enable the JDBC driver/Hive SQL engine to accept JDBC canonical or ISO-SQL 20xx Timestamp literals

ie.
select 1 from cert.tversion tversion where timestamp '1989-01-01 10:20:30.000000000' <> timestamp '2000-12-31 12:15:30.123000000'

instead of
unix_timestamp('.....)


Diffs (updated)
-----

  ql/src/java/org/apache/hadoop/hive/ql/parse/HiveParser.g c903e8f 
  ql/src/java/org/apache/hadoop/hive/ql/parse/IdentifiersParser.g 13d5255 
  ql/src/java/org/apache/hadoop/hive/ql/parse/TypeCheckProcFactory.java e065983 
  ql/src/test/queries/clientnegative/timestamp_literal.q PRE-CREATION 
  ql/src/test/queries/clientpositive/partition_timestamp.q PRE-CREATION 
  ql/src/test/queries/clientpositive/partition_timestamp2.q PRE-CREATION 
  ql/src/test/queries/clientpositive/timestamp_literal.q PRE-CREATION 
  ql/src/test/results/clientnegative/date_literal2.q.out 82f6425 
  ql/src/test/results/clientnegative/date_literal3.q.out 82f6425 
  ql/src/test/results/clientnegative/illegal_partition_type4.q.out e388086 
  ql/src/test/results/clientnegative/timestamp_literal.q.out PRE-CREATION 
  ql/src/test/results/clientpositive/partition_timestamp.q.out PRE-CREATION 
  ql/src/test/results/clientpositive/partition_timestamp2.q.out PRE-CREATION 
  ql/src/test/results/clientpositive/timestamp_literal.q.out PRE-CREATION 

Diff: https://reviews.apache.org/r/27367/diff/


Testing
-------


Thanks,

Navis Ryu