[
https://issues.apache.org/jira/browse/HIVE-10488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14519921#comment-14519921
]
Chaoyu Tang commented on HIVE-10488:
------------------------------------
Here are the desc formatted from two tables (testcastts and testcastorcts) I
tested:
{code}
# Detailed Table Information
Database: jira
Owner: ctang
CreateTime: Wed Apr 29 12:03:08 EDT 2015
LastAccessTime: UNKNOWN
Protect Mode: None
Retention: 0
Location: file:/user/hive/warehouse/apache/jira.db/testcastts
Table Type: MANAGED_TABLE
Table Parameters:
COLUMN_STATS_ACCURATE true
numFiles 4
numRows 4
rawDataSize 40
totalSize 44
transient_lastDdlTime 1430323769
# Storage Information
SerDe Library: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
InputFormat: org.apache.hadoop.mapred.TextInputFormat
OutputFormat:
org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
Compressed: No
Num Buckets: -1
Bucket Columns: []
Sort Columns: []
Storage Desc Params:
serialization.format 1
===
key int
datevalue date
# Detailed Table Information
Database: jira
Owner: ctang
CreateTime: Wed Apr 29 12:12:42 EDT 2015
LastAccessTime: UNKNOWN
Protect Mode: None
Retention: 0
Location: file:/user/hive/warehouse/apache/jira.db/testcastorcts
Table Type: MANAGED_TABLE
Table Parameters:
COLUMN_STATS_ACCURATE true
numFiles 1
numRows 4
rawDataSize 184
totalSize 304
transient_lastDdlTime 1430324019
# Storage Information
SerDe Library: org.apache.hadoop.hive.ql.io.orc.OrcSerde
InputFormat: org.apache.hadoop.hive.ql.io.orc.OrcInputFormat
OutputFormat: org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat
Compressed: No
Num Buckets: -1
Bucket Columns: []
Sort Columns: []
Storage Desc Params:
serialization.format 1
{code}
BTW, I also queried with vectorized execution (set
hive.vectorized.execution.enabled=true) for the ORC table testcastorcts, it
also worked fine.
> cast DATE as TIMESTAMP returns incorrect values
> -----------------------------------------------
>
> Key: HIVE-10488
> URL: https://issues.apache.org/jira/browse/HIVE-10488
> Project: Hive
> Issue Type: Bug
> Components: SQL
> Affects Versions: 0.13.1
> Reporter: N Campbell
> Assignee: Chaoyu Tang
>
> same data in textfile works
> same data loaded into an ORC table does not
> connection property of tez/mr makes no difference.
> select rnum, cdt, cast (cdt as timestamp) from tdt
> 0 <null> <null>
> 1 1996-01-01 1969-12-31 19:00:09.496
> 2 2000-01-01 1969-12-31 19:00:10.957
> 3 2000-12-31 1969-12-31 19:00:11.322
> vs
> 0 <null> <null>
> 1 1996-01-01 1996-01-01 00:00:00.0
> 2 2000-01-01 2000-01-01 00:00:00.0
> 3 2000-12-31 2000-12-31 00:00:00.0
> create table if not exists TDT ( RNUM int , CDT date )
> STORED AS orc ;
> insert overwrite table TDT select * from text.TDT;
> 0|\N
> 1|1996-01-01
> 2|2000-01-01
> 3|2000-12-31
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)