-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed as not planned
Closed as not planned
Copy link
Description
Suppose we have an iceberg table populated with spark:
create table foo(d double) using iceberg;
insert into foo values (cast('NaN' as double));Then executing show stats for foo with trino will throw exception:
Caused by: java.lang.IllegalArgumentException: min must not be NaN
at io.trino.spi.statistics.DoubleRange.<init>(DoubleRange.java:61)
at io.trino.spi.statistics.DoubleRange.from(DoubleRange.java:55)
at io.trino.plugin.iceberg.TableStatisticsReader.makeTableStatistics(TableStatisticsReader.java:202)
at io.trino.plugin.iceberg.TableStatisticsReader.getTableStatistics(TableStatisticsReader.java:101)
at io.trino.plugin.iceberg.IcebergMetadata.lambda$getTableStatistics$65(IcebergMetadata.java:2350)
at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708)
at io.trino.plugin.iceberg.IcebergMetadata.getTableStatistics(IcebergMetadata.java:2329)
at io.trino.plugin.base.classloader.ClassLoaderSafeConnectorMetadata.getTableStatistics(ClassLoaderSafeConnectorMetadata.java:319)
at io.trino.metadata.MetadataManager.getTableStatistics(MetadataManager.java:460)Metadata
Metadata
Assignees
Labels
No labels