You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "Alexey Kudinkin (Jira)" <ji...@apache.org> on 2022/02/15 19:06:00 UTC
[jira] [Closed] (HUDI-2526) Make spark.sql.parquet.writeLegacyFormat configurable
[ https://issues.apache.org/jira/browse/HUDI-2526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexey Kudinkin closed HUDI-2526.
---------------------------------
Resolution: Fixed
> Make spark.sql.parquet.writeLegacyFormat configurable
> -----------------------------------------------------
>
> Key: HUDI-2526
> URL: https://issues.apache.org/jira/browse/HUDI-2526
> Project: Apache Hudi
> Issue Type: Task
> Reporter: Sagar Sumit
> Assignee: Sagar Sumit
> Priority: Blocker
> Labels: pull-request-available
> Fix For: 0.10.0
>
>
> From the community,
> "I am observing that HUDI bulk inser in 0.9.0 version is not honoring
> spark.sql.parquet.writeLegacyFormat=true
> config. Can you suggest way to set this config.
> Reason to use this config:
> Current Bulk insert use spark dataframe writer and don't do avro conversion. The decimal columns in my DF are written as INT32 type in parquet.
> The upsert functionality which uses avro conversion is generating Fixed Length byte array for decimal types which is failing with datatype mismatch."
> The main reason is that the [config is hardcoded|https://github.com/apache/hudi/blob/46808dcb1fe22491326a9e831dd4dde4c70796fb/hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/io/storage/row/HoodieRowParquetWriteSupport.java#L48]. We can make it configurable.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)