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

Mark view creator in metastore #8586

Merged
merged 1 commit into from
Jul 20, 2021

Conversation

findepi
Copy link
Member

@findepi findepi commented Jul 17, 2021

No description provided.

Copy link
Member

@phd3 phd3 left a comment

Choose a reason for hiding this comment

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

thanks! last commit looks good.

@findepi findepi force-pushed the findepi/distinguish-hive-iceberg branch from b1a3b3f to 784a31b Compare July 19, 2021 12:32
@findepi
Copy link
Member Author

findepi commented Jul 19, 2021

rebased after #8540 is merged

@findepi findepi marked this pull request as ready for review July 19, 2021 12:32
@findepi
Copy link
Member Author

findepi commented Jul 19, 2021

CI #8602

@@ -1056,6 +1058,7 @@ public void createMaterializedView(ConnectorSession session, SchemaTableName vie
.put(PRESTO_QUERY_ID_NAME, session.getQueryId())
.put(STORAGE_TABLE, storageTableName)
.put(PRESTO_VIEW_FLAG, "true")
.put(TRINO_CREATED_BY, "Trino Iceberg connector")
Copy link
Member

Choose a reason for hiding this comment

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

optional: define and use a constant to avoid unintentional divergence

Copy link
Member Author

Choose a reason for hiding this comment

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

done

To be able to track down what created given view. I.e. to distinguish
between things created by Hive connector and Iceberg connector, if they
share metastore.
@findepi findepi force-pushed the findepi/distinguish-hive-iceberg branch from f876eb5 to 3c50304 Compare July 20, 2021 07:00
@findepi findepi merged commit 47163b8 into trinodb:master Jul 20, 2021
@findepi findepi deleted the findepi/distinguish-hive-iceberg branch July 20, 2021 07:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants