[
https://issues.apache.org/jira/browse/IMPALA-12322?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
daicheng updated IMPALA-12322:
------------------------------
Attachment: image-2022-04-24-00-07-09-776-1.png
image-2022-04-24-00-05-52-086-1.png
image-2022-04-24-00-04-52-860-1.png
image-2022-04-24-00-04-16-240-1.png
image-2022-04-24-00-03-14-467-1.png
image-2022-04-24-00-01-05-746-1.png
image-2022-04-24-00-07-09-776.png
image-2022-04-24-00-05-52-086.png
image-2022-04-24-00-04-52-860.png
image-2022-04-24-00-04-16-240.png
image-2022-04-24-00-03-14-467.png
image-2022-04-24-00-01-05-746.png
Description:
impala version is 3.1.0-cdh6.1
i have set system timezone=Asia/Shanghai:
!image-2022-04-24-00-01-37-520.png!
!image-2022-04-24-00-01-05-746.png!
here is the bug:
*step 1*
i have parquet file with two columns like below,and read it with impala-shell
and spark (timezone=shanghai)
!image-2022-04-24-00-03-14-467.png!
!image-2022-04-24-00-04-16-240.png!
the result both exactly right。
*step two*
create kudu table with impala-shell:
CREATE TABLE default.test_{_}test{_}_test_time2 (id BIGINT,t TIMESTAMP,PRIMARY
KEY (id) ) STORED AS KUDU;
note: kudu version:1.8
and insert 2 row into the table with spark :
!image-2022-04-24-00-04-52-860.png!
*stop 3*
read it with spark (timezone=shanghai),spark read kudu table with kudu-client
api,here is the result:
!image-2022-04-24-00-05-52-086.png!
the result is still exactly right。
but read it with impala-shell:
!image-2022-04-24-00-07-09-776.png!
the result show late 8hour
*conclusion*
it seems like impala timezone didn't work when kudu column type is
timestamp, but it work fine in parquet file,I don't know why?
was:
impala version is 3.1.0-cdh6.1
i have set system timezone=Asia/Shanghai:
!image-2022-04-24-00-01-37-520.png!
!image-2022-04-24-00-01-05-746.png|width=566,height=91!
here is the bug:
*step 1*
i have parquet file with two columns like below,and read it with impala-shell
and spark (timezone=shanghai)
the result both exactly right。
*step two*
create kudu table with impala-shell:
CREATE TABLE default.test_{_}test{_}_test_time2 (id BIGINT,t TIMESTAMP,PRIMARY
KEY (id) ) STORED AS KUDU;
note: kudu version:1.8
and insert 2 row into the table with spark :
*stop 3*
read it with spark (timezone=shanghai),spark read kudu table with kudu-client
api,here is the result:
the result is still exactly right。
but read it with impala-shell:
the result show late 8hour
*conclusion*
it seems like impala timezone didn't work when kudu column type is
timestamp, but it work fine in parquet file,I don't know why?
> return wrong timestamp when scan kudu timestamp with timezone
> -------------------------------------------------------------
>
> Key: IMPALA-12322
> URL: https://issues.apache.org/jira/browse/IMPALA-12322
> Project: IMPALA
> Issue Type: Bug
> Environment: impala 4.1.1
> Reporter: daicheng
> Priority: Major
> Attachments: image-2022-04-24-00-01-05-746-1.png,
> image-2022-04-24-00-01-05-746.png, image-2022-04-24-00-03-14-467-1.png,
> image-2022-04-24-00-03-14-467.png, image-2022-04-24-00-04-16-240-1.png,
> image-2022-04-24-00-04-16-240.png, image-2022-04-24-00-04-52-860-1.png,
> image-2022-04-24-00-04-52-860.png, image-2022-04-24-00-05-52-086-1.png,
> image-2022-04-24-00-05-52-086.png, image-2022-04-24-00-07-09-776-1.png,
> image-2022-04-24-00-07-09-776.png
>
>
> impala version is 3.1.0-cdh6.1
> i have set system timezone=Asia/Shanghai:
> !image-2022-04-24-00-01-37-520.png!
> !image-2022-04-24-00-01-05-746.png!
> here is the bug:
> *step 1*
> i have parquet file with two columns like below,and read it with impala-shell
> and spark (timezone=shanghai)
> !image-2022-04-24-00-03-14-467.png!
> !image-2022-04-24-00-04-16-240.png!
> the result both exactly right。
> *step two*
> create kudu table with impala-shell:
> CREATE TABLE default.test_{_}test{_}_test_time2 (id BIGINT,t
> TIMESTAMP,PRIMARY KEY (id) ) STORED AS KUDU;
> note: kudu version:1.8
> and insert 2 row into the table with spark :
> !image-2022-04-24-00-04-52-860.png!
> *stop 3*
> read it with spark (timezone=shanghai),spark read kudu table with kudu-client
> api,here is the result:
> !image-2022-04-24-00-05-52-086.png!
> the result is still exactly right。
> but read it with impala-shell:
> !image-2022-04-24-00-07-09-776.png!
> the result show late 8hour
> *conclusion*
> it seems like impala timezone didn't work when kudu column type is
> timestamp, but it work fine in parquet file,I don't know why?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]