metanil commented on PR #55885:
URL: https://github.com/apache/spark/pull/55885#issuecomment-7032526965

   @peter-toth thanks, and no worries about the back and forth. This is merged 
with master as of `98bbfe5` (`e35bb2c`), and 41 to 43 are in `58b4b70`.
   
   - **41**: as you tried. `UnsupportedOperationException` still means "not 
implemented", and any other exception from a connector's reducer or 
`inputTypes()` fails the query, as on master. The memo, the veto for a 
direction that threw, `Threw` with its `ownCode`, `guarded` and 
`logReducerThrew` are gone, and so are seven of the nine tests and their 
fixtures. Two became checks that the query fails: finding 12's join, so a 
reducer that throws in one direction can't quietly turn into 16 of 48 rows, and 
the "surfaced, not masked" case, as you suggested. The javadoc now says that 
any other exception fails the query, and that a connector must answer a pair 
the same way each time Spark asks, since the planner asks more than once. The 
`(Reducible, Unimplemented)` veto stays: that one is about a direction that 
implements nothing, which the dispatch still catches.
   - **43**: dropped the check, so any two transforms resolved from a V2 
`bucket` are offered the deprecated overload, as on master. `thisName`, 32's 
`function == other.function`, both careless fixtures and the description's 
sentence are gone. A new test offers it two bucket functions with different 
canonical names; it fails with the check back.
   - **42**: `.sql`, as suggested.
   
   The merge needed one adaptation of master's new code: SPARK-60541's 
`partitionTransform` matched a scan's transform with a single child, which a 
bucket, whose count is now a child, never is, and 51 of 
`PerPartitionRuntimeFilterSuite`'s 60 tests fail with that pattern. It now 
matches the transform's one column argument and rebuilds over the key with 
`rewriteColumnSlots`, and its bucket-count check reads a derived 
`numBucketsOpt`. SPARK-60813's `storedKey` sits after `fromBucketTransform`, 
and `stringArgs` prints it when set, as on master. Two of master's new tests 
needed this PR's construction: the plan-string test now expects `reducedWith` 
in this PR's form, and the codegen test sets the partner of a transform over a 
bound input directly.
   
   Two more commits: `38cde3e` moves the API to 4.5.0, since `branch-4.x` is 
4.5.0 now and `branch-4.4` is cut (the `@since`, the `@deprecated`, and the 
migration note in a new "Upgrading from Spark SQL 4.4 to 4.5" section), reads 
the deprecated reducer's counts from `numBucketsOpt`, and adds a test that a 
`truncate` scan gets a per-partition bloom filter that stays without a shuffle, 
as `days` does; `aa57d17` is docs, and a fast path in `projectExpression` when 
the expression holds no transform.
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to