You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "HyukjinKwon (via GitHub)" <gi...@apache.org> on 2025/02/12 00:57:09 UTC
[PR] [SPARK-49699][SS][FOLLOW-UP] Rename to spark.sql.optimizer.pruneFiltersCanPruneStreamingSubplan [spark]
HyukjinKwon opened a new pull request, #49897:
URL: https://github.com/apache/spark/pull/49897
### What changes were proposed in this pull request?
This PR is a followup of https://github.com/apache/spark/pull/48149 that proposes to rename `spark.databricks.sql.optimizer.pruneFiltersCanPruneStreamingSubplan` to `spark.sql.optimizer.pruneFiltersCanPruneStreamingSubplan`
### Why are the changes needed?
For consistent naming.
### Does this PR introduce _any_ user-facing change?
No, the main PR has not been released yet.
### How was this patch tested?
CI should test it out.
### Was this patch authored or co-authored using generative AI tooling?
No.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-51172][SS] Rename to spark.sql.optimizer.pruneFiltersCanPruneStreamingSubplan [spark]
Posted by "HyukjinKwon (via GitHub)" <gi...@apache.org>.
HyukjinKwon commented on PR #49897:
URL: https://github.com/apache/spark/pull/49897#issuecomment-2652498476
Merged to master and branch-4.0.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-51172][SS] Rename to spark.sql.optimizer.pruneFiltersCanPruneStreamingSubplan [spark]
Posted by "WweiL (via GitHub)" <gi...@apache.org>.
WweiL commented on PR #49897:
URL: https://github.com/apache/spark/pull/49897#issuecomment-2654635490
Also a tiny fix if folks can merge
@HeartSaVioR @HyukjinKwon @dongjoon-hyun
https://github.com/apache/spark/pull/49911
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-51172][SS] Rename to spark.sql.optimizer.pruneFiltersCanPruneStreamingSubplan [spark]
Posted by "HeartSaVioR (via GitHub)" <gi...@apache.org>.
HeartSaVioR commented on PR #49897:
URL: https://github.com/apache/spark/pull/49897#issuecomment-2652486115
Let's fix in master/4.0 first to avoid making more releases shipping this. We should probably think through how to not break 3.5 when fixing. If we weren't released this in 3.5 that'd be ideal but...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-51172][SS] Rename to spark.sql.optimizer.pruneFiltersCanPruneStreamingSubplan [spark]
Posted by "HeartSaVioR (via GitHub)" <gi...@apache.org>.
HeartSaVioR commented on PR #49897:
URL: https://github.com/apache/spark/pull/49897#issuecomment-2728059888
According to https://lists.apache.org/thread/25xct2zv31kh1plpy766crs3bd6go5s6, I'm -0.99 on this PR, and I'm willing to cast -1 on this PR, because my comment remains unaddressed for more than 1 month from merging this PR.
https://github.com/apache/spark/pull/49897#issuecomment-2652486115
> Let's fix in master/4.0 first to avoid making more releases shipping this. We should probably think through how to not break 3.5 itself + upgrading from 3.5 to 4.0+ when fixing in 3.5. If we weren't released this in 3.5 that'd be ideal but...
I got thumbs up, so this is not something I only think this is critical. There are argument that "users can upgrade to Spark 3.5.5 before Spark 4.0.0", which I do not believe I agree with. Since both are casting -1 for each other's proposal, I think my comment is NOT addressed.
I'm waiting for feedback in dev@, but if we fail to make consensus on the approach on migration, I really have to cast -1 and revert this PR in master/4.0.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-49699][SS][FOLLOW-UP] Rename to spark.sql.optimizer.pruneFiltersCanPruneStreamingSubplan [spark]
Posted by "HyukjinKwon (via GitHub)" <gi...@apache.org>.
HyukjinKwon commented on PR #49897:
URL: https://github.com/apache/spark/pull/49897#issuecomment-2652471560
uhoh
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-51172][SS] Rename to spark.sql.optimizer.pruneFiltersCanPruneStreamingSubplan [spark]
Posted by "HeartSaVioR (via GitHub)" <gi...@apache.org>.
HeartSaVioR commented on PR #49897:
URL: https://github.com/apache/spark/pull/49897#issuecomment-2652567140
There are two cases:
1. The streaming query has started from Spark 3.5.4
2. The streaming query has started before Spark 3.5.4, and had migrated to Spark 3.5.4
1.
When they start the new query in Spark 3.5.4, there is no offset log to read the static config back from, so the value of config `spark.databricks.sql.optimizer.pruneFiltersCanPruneStreamingSubplan` will follow the default value, `true`.
This will be written back to offset log to ensure this value to be kept on streaming query lifecycle.
When they upgrade to the Spark version which we renamed the config, there is offset log to read the static config back, and there is no entry for `spark.sql.optimizer.pruneFiltersCanPruneStreamingSubplan`, hence we enable backward compatibility mode and put the value `false` for the config `spark.sql.optimizer.pruneFiltersCanPruneStreamingSubplan`.
This could break the query if the rule impacts the query.
2.
When they upgrade their existing streaming query from older version to Spark 3.5.4, there is offset log to read the static config back from, and there is no entry for `spark.databricks.sql.optimizer.pruneFiltersCanPruneStreamingSubplan`, hence we enable backward compatibility mode and put the value `false` for the config `spark.databricks.sql.optimizer.pruneFiltersCanPruneStreamingSubplan`. So the fix is disabled.
When they further upgrade this query to the Spark version which we renamed the config, same thing applies and the fix is disabled. So no change.
I feel like this is a sort of "dead end" because if we don't want to make the case 1 to break, the only way is to make an alias of config, which enforces us to keep this problematic config much longer (probably forever, as technically they can jump from Spark 3.5.4 to any future version). The chance to hit this case is not very high, but when they encounter this, they'd need to drop checkpoint and start from the scratch, which is unpleasant.
Not sure how we could inform Spark 3.5.4 users about this - maybe should we mention about this in release note for 3.5.5 / 4.0.0?
Anyway, we should apply the same fix in Spark 3.5 branch line. I can't imagine there is other way around.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-51172][SS] Rename to spark.sql.optimizer.pruneFiltersCanPruneStreamingSubplan [spark]
Posted by "HeartSaVioR (via GitHub)" <gi...@apache.org>.
HeartSaVioR commented on PR #49897:
URL: https://github.com/apache/spark/pull/49897#issuecomment-2728069639
Here the meaning of "my comment is NOT addressed" is,
1. My proposal is stuck on VETO.
2. Dongjoon's proposal is never discussed in public.
So we never have a way to address my question "We should probably think through how to not break 3.5 itself + upgrading from 3.5 to 4.0+ when fixing in 3.5." which got community's consensus.
This is precondition of merging this PR and I hope we quickly address the issue, hence the migration logic came up, but...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-49699][SS][FOLLOW-UP] Rename to spark.sql.optimizer.pruneFiltersCanPruneStreamingSubplan [spark]
Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #49897:
URL: https://github.com/apache/spark/pull/49897#issuecomment-2652464889
Could you file a new JIRA issue for this because this should have a fix version `3.5.5`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-51172][SS] Rename to spark.sql.optimizer.pruneFiltersCanPruneStreamingSubplan [spark]
Posted by "HyukjinKwon (via GitHub)" <gi...@apache.org>.
HyukjinKwon commented on PR #49897:
URL: https://github.com/apache/spark/pull/49897#issuecomment-2652479796
Hmmmm .. @HeartSaVioR WDYT? should we only make this change in master branch alone?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-49699][SS][FOLLOW-UP] Rename to spark.sql.optimizer.pruneFiltersCanPruneStreamingSubplan [spark]
Posted by "HyukjinKwon (via GitHub)" <gi...@apache.org>.
HyukjinKwon commented on PR #49897:
URL: https://github.com/apache/spark/pull/49897#issuecomment-2652472122
sure, will do
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-49699][SS][FOLLOW-UP] Rename to spark.sql.optimizer.pruneFiltersCanPruneStreamingSubplan [spark]
Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on code in PR #49897:
URL: https://github.com/apache/spark/pull/49897#discussion_r1951830255
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala:
##########
@@ -4110,7 +4110,7 @@ object SQLConf {
.createWithDefault(ByteArrayMethods.MAX_ROUNDED_ARRAY_LENGTH)
val PRUNE_FILTERS_CAN_PRUNE_STREAMING_SUBPLAN =
- buildConf("spark.databricks.sql.optimizer.pruneFiltersCanPruneStreamingSubplan")
+ buildConf("spark.sql.optimizer.pruneFiltersCanPruneStreamingSubplan")
Review Comment:
Nice catch!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-51172][SS] Rename to spark.sql.optimizer.pruneFiltersCanPruneStreamingSubplan [spark]
Posted by "HyukjinKwon (via GitHub)" <gi...@apache.org>.
HyukjinKwon closed pull request #49897: [SPARK-51172][SS] Rename to spark.sql.optimizer.pruneFiltersCanPruneStreamingSubplan
URL: https://github.com/apache/spark/pull/49897
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org