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

Spark 3.4: Add view support to SparkSessionCatalog #11797

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nastra
Copy link
Contributor

@nastra nastra commented Dec 16, 2024

This backports #11388

@github-actions github-actions bot added the spark label Dec 16, 2024
@nastra nastra force-pushed the spark34-views-session-catalog-support branch 2 times, most recently from debf181 to a2186e4 Compare December 17, 2024 07:29
@nastra nastra force-pushed the spark34-views-session-catalog-support branch from a2186e4 to 142cbea Compare December 17, 2024 07:46
@@ -169,9 +169,9 @@ public void testCreateTable() {

@Test
public void showView() {
sql("DROP VIEW IF EXISTS %s", "test");
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this test started to fail only in Spark 3.4 when backporting the view changes to SparkSessionCatalog. There is some funkiness going on with the spark_catalog in Spark 3.4 tests where the spark_catalog is reusing some settings from a previous test run. I'll investigate that separately and for now decided to move the DROP to the end of the test (and aligned the same thing for the Spark 3.5 SmokeTest.

The TLDR of this test failure is:

  • a previous catalog config created a view named test
  • the next test configuration tries to drop this view where the catalog type is hive
  • Hive fails when trying to load the view in order to see if it exists here due to the view not being an iceberg view

@nastra nastra requested a review from danielcweeks December 17, 2024 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant