Skip to content

Speed up Materialized Views metadata access#19939

Merged
findepi merged 2 commits intotrinodb:masterfrom
alexjo2144:ajo/mv-properties
Dec 13, 2023
Merged

Speed up Materialized Views metadata access#19939
findepi merged 2 commits intotrinodb:masterfrom
alexjo2144:ajo/mv-properties

Conversation

@alexjo2144
Copy link
Copy Markdown
Member

Description

Materialized view properties can be more expensive to retrieve
and are unused except for SHOW CREATE queries. Splitting them
from the main definition reduces file system calls for metadata
queries against the Iceberg connector.

Additional context and related issues

Release notes

( ) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
(x) Release notes are required, with the following suggested text:

# Iceberg
* Improve performance of metadata queries involving materialized views.

@cla-bot cla-bot bot added the cla-signed label Nov 28, 2023
@github-actions github-actions bot added tests:hive iceberg Iceberg connector hive Hive connector bigquery BigQuery connector labels Nov 28, 2023
@findepi
Copy link
Copy Markdown
Member

findepi commented Nov 29, 2023

Test failures seems related

Error:  io.trino.execution.TestCreateMaterializedViewTask.testCreateMaterializedViewWithDefaultProperties -- Time elapsed: 0.876 s <<< FAILURE!
org.opentest4j.AssertionFailedError: 

expected: 123
 but was: null

Copy link
Copy Markdown
Member

@findepi findepi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mind the failing tests.

Please apply changes as fixups

@findepi findepi changed the title Separate properties from MaterializedViewDefinition Speed up Materialized Views access Nov 29, 2023
@findepi findepi changed the title Speed up Materialized Views access Speed up Materialized Views metadata access Nov 29, 2023
@alexjo2144
Copy link
Copy Markdown
Member Author

Fixups applied, thanks @findepi

@alexjo2144
Copy link
Copy Markdown
Member Author

Suite 1 failure is unrelated: #16315

@findepi
Copy link
Copy Markdown
Member

findepi commented Dec 1, 2023

Only minor changes. Please squash, apply and force push (preferably all at once)

@alexjo2144 alexjo2144 force-pushed the ajo/mv-properties branch 2 times, most recently from 61eb3e1 to 6716e87 Compare December 1, 2023 16:51
@alexjo2144
Copy link
Copy Markdown
Member Author

alexjo2144 commented Dec 1, 2023

Sorry for the double force push, missed a parenthesis the first time...

Edit: And another one for conflicts

@alexjo2144 alexjo2144 force-pushed the ajo/mv-properties branch 2 times, most recently from 007dda7 to 317b4e0 Compare December 6, 2023 16:38
Materialized view properties can be more expensive to retrieve
and are unused except for SHOW CREATE queries. Splitting them
from the main definition reduces file system calls for metadata
queries against the Iceberg connector.
@findepi findepi merged commit ebc74b7 into trinodb:master Dec 13, 2023
@github-actions github-actions bot added this to the 435 milestone Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bigquery BigQuery connector cla-signed hive Hive connector iceberg Iceberg connector

Development

Successfully merging this pull request may close these issues.

2 participants