You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "lurnagao (via GitHub)" <gi...@apache.org> on 2023/04/17 03:18:01 UTC
[GitHub] [iceberg] lurnagao opened a new pull request, #7359: Hive: Fix using Date type as partition field
lurnagao opened a new pull request, #7359:
URL: https://github.com/apache/iceberg/pull/7359
When using date/timestampas a partition field, it will throw IllegalStateException: Not not instance of...
for example:
create table iceberg_test(id int, name string) partitioned by (dt date) stored by 'org.apache.iceberg.mr.hive.HiveIcebergStorageHandler';
then insert into :
insert into iceberg_test values(1, 'xxx', '2023-01-01');
The exception is as follows:
java.lang.IllegalStateException: Not an instance of java.lang.Integer: 2023-01-01 at org.apache.iceberg.data.GenericRecord.get(GenericRecord.java:123) at org.apache.iceberg.Accessors$PositionAccessor.get(Accessors.java:71) at org.apache.iceberg.Accessors$PositionAccessor.get(Accessors.java:58) at org.apache.iceberg.PartitionKey.partition(PartitionKey.java:104)
We will need to wrapping the record into an InternalRecordWrapper
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Hive: Fix using Date type as partition field [iceberg]
Posted by "lurnagao-dahua (via GitHub)" <gi...@apache.org>.
lurnagao-dahua closed pull request #7359: Hive: Fix using Date type as partition field
URL: https://github.com/apache/iceberg/pull/7359
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org