[ 
https://issues.apache.org/jira/browse/HUDI-5157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Raymond Xu updated HUDI-5157:
-----------------------------
    Sprint: 2022/11/01, 2022/11/15, 2022/11/29  (was: 2022/11/01, 2022/11/15)

> Duplicate partition path for chained hudi tables. 
> --------------------------------------------------
>
>                 Key: HUDI-5157
>                 URL: https://issues.apache.org/jira/browse/HUDI-5157
>             Project: Apache Hudi
>          Issue Type: Bug
>          Components: deltastreamer
>            Reporter: sivabalan narayanan
>            Assignee: sivabalan narayanan
>            Priority: Critical
>              Labels: pull-request-available
>             Fix For: 0.12.2
>
>
> tblA -> tblB -> tblC. 
> if I chain 3 hudi tables via hoodieincr source, for tblC, we encounter 
> duplicate partition path (meta field) exception. 
> {code:java}
> client token: N/A
>        diagnostics: User class threw exception: 
> org.apache.spark.sql.AnalysisException: Found duplicate column(s) in the data 
> schema: `_hoodie_partition_path`;
>       at 
> org.apache.spark.sql.util.SchemaUtils$.checkColumnNameDuplication(SchemaUtils.scala:90)
>       at 
> org.apache.spark.sql.util.SchemaUtils$.checkColumnNameDuplication(SchemaUtils.scala:70)
>       at 
> org.apache.spark.sql.execution.datasources.DataSource.resolveRelation(DataSource.scala:440)
>       at 
> org.apache.spark.sql.DataFrameReader.loadV1Source(DataFrameReader.scala:297)
>       at 
> org.apache.spark.sql.DataFrameReader.$anonfun$load$2(DataFrameReader.scala:286)
>       at scala.Option.getOrElse(Option.scala:189)
>       at org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:286)
>       at org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:232)
>       at 
> com.navi.sources.HoodieIncrSource.fetchNextBatch(HoodieIncrSource.java:122)
>       at 
> org.apache.hudi.utilities.sources.RowSource.fetchNewData(RowSource.java:43)
>       at org.apache.hudi.utilities.sources.Source.fetchNext(Source.java:76)
>       at 
> org.apache.hudi.utilities.deltastreamer.SourceFormatAdapter.fetchNewDataInRowFormat(SourceFormatAdapter.java:95)
>       at 
> org.apache.hudi.utilities.deltastreamer.DeltaSync.readFromSource(DeltaSync.java:388)
>       at 
> org.apache.hudi.utilities.deltastreamer.DeltaSync.syncOnce(DeltaSync.java:283)
>       at 
> org.apache.hudi.utilities.deltastreamer.HoodieDeltaStreamer.lambda$sync$2(HoodieDeltaStreamer.java:193)
>       at org.apache.hudi.common.util.Option.ifPresent(Option.java:96)
>       at 
> org.apache.hudi.utilities.deltastreamer.HoodieDeltaStreamer.sync(HoodieDeltaStreamer.java:191)
>       at 
> org.apache.hudi.utilities.deltastreamer.HoodieDeltaStreamer.main(HoodieDeltaStreamer.java:511)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>       at java.lang.reflect.Method.invoke(Method.java:498)
>       at 
> org.apache.spark.deploy.yarn.ApplicationMaster$$anon$2.run(ApplicationMaster.scala:728)
>  {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to