-
Notifications
You must be signed in to change notification settings - Fork 0
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
[No-Merge] Test Hive_view with Spark #11
Conversation
924b2b9
to
9117989
Compare
@@ -1318,8 +1320,8 @@ public void createViewWithSubqueryExpressionInFilterThatIsRewritten() | |||
sql("USE spark_catalog"); | |||
|
|||
assertThatThrownBy(() -> sql(sql)) | |||
.isInstanceOf(AnalysisException.class) | |||
.hasMessageContaining(String.format("The table or view `%s` cannot be found", tableName)); | |||
.isInstanceOf(SparkException.class) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In Case of Hive Catalog the thrown exception is type of SparkException
@@ -1430,29 +1432,29 @@ public void showViews() throws NoSuchTableException { | |||
Object[] tempView = row("", "tempviewforlisting", true); | |||
assertThat(sql("SHOW VIEWS")) | |||
.contains( | |||
row(NAMESPACE.toString(), "prefixV2", false), | |||
row(NAMESPACE.toString(), "prefixV3", false), | |||
row(NAMESPACE.toString(), "prefixv2", false), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hive is always returning it in lower case.
+ " 'provider' = 'iceberg')\n" | ||
+ "AS\n%s\n", | ||
catalogName, NAMESPACE, viewName, NAMESPACE, viewName, sql); | ||
catalogName, NAMESPACE, viewName, TestHiveMetastore.HIVE_LOCAL_DIR, viewName, sql); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hive is initialising it's temp path with prefix hive.
a9c09c9
to
7a83702
Compare
b3d4525
to
57eff75
Compare
… exceptions. Add tests with Hive-View and Hive-Iceberg View. failedCommitStatusCheckSupplier for table and view with metadataLocation and versionId respectively.
Tests to do validation hive and iceberg view with the same name.
7d44d05
to
a188863
Compare
…ts in table metadata pointing to files that doesn't exist (apache#9998) Co-authored-by: Abid Mohammed <[email protected]>
…e#10072) Bumps software.amazon.awssdk:bom from 2.25.18 to 2.25.21. --- updated-dependencies: - dependency-name: software.amazon.awssdk:bom dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…he#9988) Bumps org.glassfish.jaxb:jaxb-runtime from 2.3.3 to 2.3.9. --- updated-dependencies: - dependency-name: org.glassfish.jaxb:jaxb-runtime dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
9117989
to
21b4255
Compare
No description provided.