Comments (6)
Same issue on the delta connector, if that helps. 👍
Running DeltaLakeQueryRunner#S3DeltaLakeQueryRunnerMain
with the following SQL:
CREATE TABLE delta.tpch.tbl AS
SELECT
date_add('day', cast(rand() * 365 as int), date'2020-01-01') payment_date,
if(rand() < 0.3, 1) converted,
if(rand() > 0.9, 1) realized
FROM TABLE(sequence(1,4734676));
SELECT
SUM(COALESCE(converted, realized)) FILTER(WHERE (payment_date <= DATE('2023-11-30'))) AS cumulative
FROM delta.tpch.tbl;
from trino.
We believe it is the same issue as #21272.
from trino.
cc @dain
from trino.
Relates to #21272
from trino.
Issue can be easily reproduced by the following queries:
CREATE TABLE iceberg.default.tbl AS
SELECT uuid() id,
date_add('day', cast(rand() * 365 as int), date'2020-01-01') payment_date,
if(rand() < 0.3, 1) converted,
if(rand() > 0.9, 1) realized
FROM TABLE(sequence(1,4734676))
;
SELECT
SUM(COALESCE(converted, realized)) FILTER(WHERE (payment_date <= DATE('2023-11-30'))) AS cumulative
FROM iceberg.default.tbl
;
java.lang.IllegalArgumentException: Invalid position 256 in block with 256 positions
at io.trino.spi.block.BlockUtil.checkValidPosition(BlockUtil.java:72)
at io.trino.spi.block.BlockUtil.checkReadablePosition(BlockUtil.java:78)
at io.trino.spi.block.LongArrayBlock.isNull(LongArrayBlock.java:141)
at io.trino.$gen.AggregationMaskBuilder_20240328_084411_60.buildAggregationMask(Unknown Source)
at io.trino.operator.aggregation.Aggregator.processPage(Aggregator.java:75)
at io.trino.operator.AggregationOperator.addInput(AggregationOperator.java:137)
at io.trino.operator.Driver.processInternal(Driver.java:403)
at io.trino.operator.Driver.lambda$process$8(Driver.java:301)
at io.trino.operator.Driver.tryWithLock(Driver.java:704)
at io.trino.operator.Driver.process(Driver.java:293)
at io.trino.operator.Driver.processForDuration(Driver.java:264)
at io.trino.execution.SqlTaskExecution$DriverSplitRunner.processFor(SqlTaskExecution.java:887)
at io.trino.execution.executor.dedicated.SplitProcessor.run(SplitProcessor.java:76)
at io.trino.execution.executor.dedicated.TaskEntry$VersionEmbedderBridge.lambda$run$0(TaskEntry.java:191)
at io.trino.$gen.Trino_443_122_gb52e3f6____20240328_082125_2.run(Unknown Source)
at io.trino.execution.executor.dedicated.TaskEntry$VersionEmbedderBridge.run(TaskEntry.java:192)
at io.trino.execution.executor.scheduler.FairScheduler.runTask(FairScheduler.java:174)
at io.trino.execution.executor.scheduler.FairScheduler.lambda$submit$0(FairScheduler.java:161)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:131)
at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:76)
at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:82)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.lang.Thread.run(Thread.java:1583)
from trino.
cc @sopel39
from trino.
Related Issues (20)
- Delta Lake Inconsistent INSERT outcome in the context of performing concurrent operations HOT 2
- Problem with gsheet connector HOT 5
- Unused Configuration Properties Causing Errors in Non-Kerberized and Non-HTTPS Environments HOT 3
- Incorrect Jaccard Index Calculation in Trino HOT 3
- question about hive.allow-register-partition-procedure
- COMPILER_ERROR HOT 6
- Server Fails to Start When HTTPS is Disabled HOT 9
- Separate Configuration for Internal and Client Communication Security
- Grafana queries cause workers to stuck HOT 1
- Race condition in Alluxio cache HOT 6
- Resource group metrics are not exported via JMX since 440 HOT 2
- Greatest/Least Function Check NaN on REAL data types? HOT 1
- Got exception: org.apache.hadoop.fs.UnsupportedFileSystemException No FileSystem for scheme "s3" HOT 1
- Possible SQL analyzer memory leak for trino 439?
- Trino hive count(*) are not matching with the same set of data on two tables HOT 1
- Jackson LockFreePool recycler pool causes memory issues HOT 11
- Error location markers for SQL routines (functions) are off, may break CLI HOT 1
- When utilizing column masking, unnecessary requests are generated for each column.
- Improve speed when listing transaction logs during time travel in Delta Lake HOT 1
- Support Snowflake SSO authentication
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trino.