Skip to content
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

Fix all tests and squash into one #9

Merged
merged 588 commits into from
Dec 5, 2023

Conversation

yuuteng
Copy link

@yuuteng yuuteng commented Dec 4, 2023

Fix all tests and squash into one

martint and others added 30 commits November 19, 2023 19:11
Before Iceberg library gained Puffin stats, Trino would store table
stats in Iceberg table properties. This became obsoleted in Trino 405
(released in Dec 2022).  Dropping support for old stats format means
need to re-analyze tables that haven't been written to by Trino 405 or
newer.
Table/view not found can be indicated by `TrinoException` with
`TABLE_NOT_FOUND` error code, but also by `TableNotFoundException` or
`ViewNotFoundException` exceptions (both using `NOT_FOUND` error code).
The code catching "not found" exceptions should catch all three.
The information was not correct when ANALYZE was invoked without
`columns` parameter -- instead of all columns, an empty set was there.

The information can be replaced with a single boolean.
ValuesStatsRule is calling evaluateConstantExpression
which might fail for certain expressions like division by 0.
It's no longer needed as stats rules have been improved
If stats collection was not requested explicitly, then use statistics
that were fetched and cached during planning.
When concurrency is not involved, it is not needed and when it is
involved, it doesn't provide more correctness.

FWIW, the `system.jdbc.tables` doesn't have similar set unioning.
Prevent passing impossible names down to the connectors.
E.g. prevents failures if a connector chooses to convert input to
something that validates name is not impossible, like
`SchemaTablePrefix`.
`listMaterializedViews` can return names already included in metastore's
relation listing.
electrum and others added 16 commits December 1, 2023 09:25
Ignore failure within stage execution if it already done.
This is to work around the problem which was introduced with
trinodb@39b04491c05.
With that change we close EventDrivenTaskSource when stage completes,
and as a result of that it may emit an failure event due to internall
processes being cancelled.
Handling of event in `StageExecution.fail()` did close a number of
objects needed for query completion (see createStageExecutionCloser()).
As a result the query could hang.
… Server

Co-Authored-By: Jonas Haag <jonas@lophus.org>
@dprophet dprophet merged commit 5ec9466 into bloomberg:snowflake Dec 5, 2023
1 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.