-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Iceberg from 1.3.1 to 1.4.1 #19434
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,7 +67,7 @@ | |
import org.apache.iceberg.mapping.MappingUtil; | ||
import org.apache.iceberg.mapping.NameMapping; | ||
import org.apache.iceberg.orc.OrcMetrics; | ||
import org.apache.iceberg.parquet.TrinoParquetUtil; | ||
import org.apache.iceberg.parquet.ParquetUtil; | ||
import org.apache.iceberg.types.TypeUtil; | ||
import org.apache.iceberg.types.Types; | ||
|
||
|
@@ -382,7 +382,7 @@ private static Metrics loadMetrics(TrinoInputFile file, HiveStorageFormat storag | |
InputFile inputFile = new ForwardingInputFile(file); | ||
return switch (storageFormat) { | ||
case ORC -> OrcMetrics.fromInputFile(inputFile, METRICS_CONFIG, nameMapping); | ||
case PARQUET -> TrinoParquetUtil.fileMetrics(inputFile, METRICS_CONFIG, nameMapping); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ebyhr ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change loos fine for me. |
||
case PARQUET -> ParquetUtil.fileMetrics(inputFile, METRICS_CONFIG, nameMapping); | ||
case AVRO -> new Metrics(Avro.rowCount(inputFile), null, null, null, null); | ||
default -> throw new TrinoException(NOT_SUPPORTED, "Unsupported storage format: " + storageFormat); | ||
}; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HttpClientBuilder is deprecated now. Let's migrate to NessieClientBuilder in follow-up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK