-
Notifications
You must be signed in to change notification settings - Fork 144
SNOW-1878372: Fix analyzer access across threads #2912
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
Changes from 8 commits
2ef5d1f
4203cc7
e3c924d
d6809dc
fa04d62
bc61ebc
9b2afec
d7a38a0
601b02a
6921fa1
94ea833
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -455,7 +455,8 @@ def test_select_statement( | |
| new_replaced_plan = plan.children_plan_nodes[0] | ||
| assert isinstance(new_replaced_plan, SelectSnowflakePlan) | ||
| assert new_replaced_plan._snowflake_plan.source_plan == new_plan | ||
| assert new_replaced_plan.analyzer == mock_query_generator | ||
| # new_replaced_plan is created with QueryGenerator.to_selectable | ||
| assert new_replaced_plan.analyzer == mock_analyzer | ||
|
Comment on lines
-458
to
+459
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this change to pass the new "setter" check?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Before this change After this change, |
||
|
|
||
| post_actions = [Query("drop table if exists table_name")] | ||
| new_replaced_plan.post_actions = post_actions | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -84,7 +84,7 @@ def test_find_duplicate_subtrees(test_case): | |
| assert repeated_node_complexity == expected_repeated_node_complexity | ||
|
|
||
|
|
||
| def test_encode_node_id_with_query_select_sql(mock_analyzer): | ||
| def test_encode_node_id_with_query_select_sql(mock_session, mock_analyzer): | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same as jamison's question. Linking old response: #2912 (comment) |
||
| sql_text = "select 1 as a, 2 as b" | ||
| select_sql_node = SelectSQL( | ||
| sql=sql_text, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.