[
https://issues.apache.org/jira/browse/HUDI-8315?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Y Ethan Guo updated HUDI-8315:
------------------------------
Fix Version/s: 1.0.1
(was: 1.1.0)
> Exception when write null value to table with timestamp partitioning
> --------------------------------------------------------------------
>
> Key: HUDI-8315
> URL: https://issues.apache.org/jira/browse/HUDI-8315
> Project: Apache Hudi
> Issue Type: Bug
> Components: hive, spark-sql
> Reporter: Ranga Reddy
> Priority: Major
> Fix For: 1.0.1
>
>
> *Issue:*
> Exception occurs when writing a null value to a partition table with a
> timestamp partition column.
> *Expectation:*
> Needs to support timestamp type partition column value as null similar to
> writing data to hive table.
> *Code:*
> {code:java}
> spark.sql(
> s"""
> |CREATE TABLE hudi_test_null_partition (
> | id INT,
> | boolean_field BOOLEAN,
> | float_field FLOAT,
> | byte_field BYTE,
> | short_field SHORT,
> | decimal_field DECIMAL(10, 5),
> | date_field DATE,
> | string_field STRING,
> | timestamp_field TIMESTAMP
> |) USING hudi
> | TBLPROPERTIES (primaryKey = 'id')
> | PARTITIONED BY (boolean_field, float_field, byte_field,
> short_field, decimal_field, date_field, string_field, timestamp_field)
> """.stripMargin)spark.sql(
> s"""
> |INSERT INTO hudi_test_null_partition VALUES
> |(1, TRUE, CAST(1.0 as FLOAT), 1, 1, 1234.56789, DATE '2021-01-05',
> 'partition1', null),
> |(2, FALSE,CAST(2.0 as FLOAT), 2, 2, 6789.12345, DATE '2021-01-06',
> 'partition2', TIMESTAMP '2021-01-06 11:00:00')
> """.stripMargin){code}
> *Reference Issue:*
> [https://github.com/apache/hudi/issues/11900]
>
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)