You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2020/07/08 20:57:00 UTC

[jira] [Commented] (IMPALA-9531) Drop support for "dateless timestamps"

    [ https://issues.apache.org/jira/browse/IMPALA-9531?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17154003#comment-17154003 ] 

ASF subversion and git services commented on IMPALA-9531:
---------------------------------------------------------

Commit 1bafb7bd29f4ecf1706d35e274c2b701a32281ac in impala's branch refs/heads/master from Adam Tamas
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=1bafb7b ]

IMPALA-9531: Dropped support for dateless timestamps

Removed the support for dateless timestamps.
During dateless timestamp casts if the format doesn't contain
date part we get an error during tokenization of the format.
If the input str doesn't contain a date part then we get null result.

Examples:
select cast('01:02:59' as timestamp);
This will come back as NULL value.

select to_timestamp('01:01:01', 'HH:mm:ss');
select cast('01:02:59' as timestamp format 'HH12:MI:SS');
select cast('12 AM' as timestamp FORMAT 'AM.HH12');
These will come back with a parsing errors.

Casting from a table will generate similar results.

Testing:
Modified the previous tests related to dateless timestamps.
Added test to read fromtables which are still containing dateless
timestamps and covered timestamp to string path when no date tokens
are requested in the output string.

Change-Id: I48c49bf027cc4b917849b3d58518facba372b322
Reviewed-on: http://gerrit.cloudera.org:8080/15866
Tested-by: Impala Public Jenkins <im...@cloudera.com>
Reviewed-by: Gabor Kaszab <ga...@cloudera.com>


> Drop support for "dateless timestamps"
> --------------------------------------
>
>                 Key: IMPALA-9531
>                 URL: https://issues.apache.org/jira/browse/IMPALA-9531
>             Project: IMPALA
>          Issue Type: Improvement
>          Components: Backend
>            Reporter: Csaba Ringhofer
>            Assignee: Adam Tamas
>            Priority: Minor
>
> Currently cast("15:42:00" as timestamp) doesn't return NULL, but it should, as the resulting timestamps are more or less useless:
> - other fileformats than text do not support them
> - most built-in unctions don't support them - even those where it could  make sense
> IMPALA-5942 contains more details about these issues.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org