File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
xtable-core/src/main/java/org/apache/xtable/iceberg Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,11 @@ public InternalTable getTable(Snapshot snapshot) {
120120 irPartitionFields .size () > 0
121121 ? DataLayoutStrategy .HIVE_STYLE_PARTITION
122122 : DataLayoutStrategy .FLAT ;
123+ // When the table name is not explicitly specified, Iceberg assumes the table is HDFS-based,
124+ // treating the table name as the location in HDFS. This assumption can lead to mismatches
125+ // during data conversion. To mitigate this issue, we rely on the table name provided in the
126+ // source configuration of the conversation, ensuring consistency and avoiding potential errors.
127+ // See https://github.com/apache/incubator-xtable/issues/494
123128 return InternalTable .builder ()
124129 .tableFormat (TableFormat .ICEBERG )
125130 .basePath (iceTable .location ())
You can’t perform that action at this time.
0 commit comments