Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions presto-iceberg/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<properties>
<air.main.basedir>${project.parent.basedir}</air.main.basedir>
<dep.iceberg.version>0.9.0</dep.iceberg.version>
<dep.iceberg.version>0.11.1</dep.iceberg.version>
</properties>

<dependencies>
Expand Down Expand Up @@ -274,7 +274,7 @@

<dependency>
<groupId>org.apache.iceberg</groupId>
<artifactId>iceberg-hive</artifactId>
<artifactId>iceberg-hive-metastore</artifactId>
<version>${dep.iceberg.version}</version>
</dependency>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
import org.apache.iceberg.TableMetadataParser;
import org.apache.iceberg.TableOperations;
import org.apache.iceberg.exceptions.CommitFailedException;
import org.apache.iceberg.hive.HiveTypeConverter;
import org.apache.iceberg.hive.HiveSchemaUtil;
import org.apache.iceberg.io.FileIO;
import org.apache.iceberg.io.LocationProvider;
import org.apache.iceberg.io.OutputFile;
Expand Down Expand Up @@ -394,7 +394,7 @@ private static List<Column> toHiveColumns(List<NestedField> columns)
return columns.stream()
.map(column -> new Column(
column.name(),
HiveType.valueOf(HiveTypeConverter.convert(column.type())),
HiveType.toHiveType(HiveSchemaUtil.convert(column.type())),
Optional.empty()))
.collect(toImmutableList());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,9 @@ private Map<StructLikeWrapper, Partition> getPartitions(TableScan tableScan)

for (FileScanTask fileScanTask : fileScanTasks) {
DataFile dataFile = fileScanTask.file();
Types.StructType structType = fileScanTask.spec().partitionType();
StructLike partitionStruct = dataFile.partition();
StructLikeWrapper partitionWrapper = StructLikeWrapper.wrap(partitionStruct);
StructLikeWrapper partitionWrapper = StructLikeWrapper.forType(structType).set(partitionStruct);

if (!partitions.containsKey(partitionWrapper)) {
Partition partition = new Partition(
Expand Down