[SPARK-56643][SQL][TESTS] Add DSv2 temp view with stored plan tests#55540
[SPARK-56643][SQL][TESTS] Add DSv2 temp view with stored plan tests#55540longvu-db wants to merge 4 commits intoapache:masterfrom
Conversation
dongjoon-hyun
left a comment
There was a problem hiding this comment.
Please get a new valid JIRA ID and use it in the PR title before converting back from Draft status.
8047eb8 to
e19d5b7
Compare
e19d5b7 to
648148b
Compare
…s in S5 Add session variants for scenarios 3 (column removal) and 4 (table recreate). Add v_unfiltered view to scenario 5. Include InMemoryBaseTable fix for column drop data migration. Add section comments for all 7 scenarios. Use separate alterTable calls for external variants. Co-authored-by: Isaac
|
Hey @dongjoon-hyun, do you know what's the issue behind "Workflow run detection failed If you did not enable GitHub Actions in your forked repository, please enable it by clicking the button as shown in the image below. See also Managing Github Actions Settings for a repository for more details. I tried to fix it with the "git fetch upstream git rebase upstream/master", but it doesn't seem to work. |
Remove InMemoryBaseTable change, extra session tests, v_unfiltered, and section comments to match the current PR apache#55540 structure exactly. Co-authored-by: Isaac
|
Today's GitHub outage might be related, @longvu-db . It's abnormal today. |
…s in S5 Add session variants for scenarios 3 (column removal) and 4 (table recreate). Add v_unfiltered view to scenario 5. Include InMemoryBaseTable fix for column drop data migration. Add section comments for all 7 scenarios. Use separate alterTable calls for external variants. Co-authored-by: Isaac
Remove InMemoryBaseTable change, extra session tests, v_unfiltered, and section comments to match the current PR apache#55540 structure exactly. Co-authored-by: Isaac
ceac7d2 to
81eefbe
Compare
|
Unrelated test failures https://github.com/longvu-db/spark/runs/73444115182 |
81eefbe to
56a1d34
Compare
…s in S5 Add session variants for scenarios 3 (column removal) and 4 (table recreate). Add v_unfiltered view to scenario 5. Include InMemoryBaseTable fix for column drop data migration. Add section comments for all 7 scenarios. Use separate alterTable calls for external variants. Co-authored-by: Isaac
Remove InMemoryBaseTable change, extra session tests, v_unfiltered, and section comments to match the current PR apache#55540 structure exactly. Co-authored-by: Isaac
798eaf3 to
0370304
Compare
Rebased on latest master.
8419320 to
a3f9fb6
Compare
Assert schema field names before every checkAnswer with empty results to verify schema is preserved correctly after table modifications.
Add missing test for Section 1 Scenario 3.1 where a session ALTER TABLE DROP COLUMN should trigger an analysis exception when querying a temp view that references the removed column.
| } | ||
| } | ||
|
|
||
| // Scenario 3.2 (external column removal) |
There was a problem hiding this comment.
| // Scenario 3.2 (external column removal) |
Co-authored-by: Isaac
What changes were proposed in this pull request?
Add 11 new tests to
DataSourceV2DataFrameSuitethat verify temporary view behavior with stored plans when the underlying DSv2 table changes. The tests cover all 7 scenarios from the DSv2 table refresh design doc:Each test creates a DSv2 table, inserts initial data, builds a temp view with a filter (
salary < 999) to demonstrate stored plan behavior, and verifies the view after table modifications.External writes use the direct catalog API (
loadTable+withData) to simulate writes from outside the session.Why are the changes needed?
The existing SPARK-53924 tests in
DataSourceV2DataFrameSuitecover basic schema change detection for temp views on DSv2 tables but are missing:Does this PR introduce any user-facing change?
No. This PR only adds tests.
How was this patch tested?
All 11 new tests pass:
All 21 SPARK-53924 tests (10 existing + 11 new) pass with no regressions:
Was this patch authored or co-authored using generative AI tooling?
Yes.