comphead commented on code in PR #7477:
URL: https://github.com/apache/datafusion-comet/pull/7477#discussion_r4762661796


##########
docs/source/user-guide/latest/compatibility/expressions/_category_template/cast.md:
##########
@@ -218,13 +224,13 @@ integer types to a negative-scale `DecimalType`. Comet 
reports these as unsuppor
 routes them through the JVM codegen dispatcher (Spark's own generated code) 
inside the Comet
 pipeline, so the results match Spark exactly.

Review Comment:
   "so the results match Spark exactly" is the same claim this PR removed 
elsewhere in rounds 11 to 13 (`compatibility/index.md`, `expressions.md`, the 
per-version indexes). A dispatched cast is Spark's generated code over Arrow 
batches, so it can still hit Arrow's limits. Could this end at "(Spark's own 
generated code) inside the Comet pipeline"? 
`docs/source/about/gluten_comparison.md` lines 156 and 163 ("byte-exact logic", 
"match Spark exactly") say the same thing and the PR does not touch that page. 
Those two lines are now at odds with the rest of the PR.



##########
docs/source/user-guide/latest/expressions.md:
##########
@@ -43,7 +41,7 @@ Most expressions can also be disabled with 
`spark.comet.expression.EXPRNAME.enab
 
 | Status | Meaning |
 | --- | --- |
-| ✅ Supported | Comet produces Spark-compatible results by default. Some 
inputs or forms may fall back to Spark, and any incompatible behavior is opt-in 
(off by default). |
+| ✅ Supported | Comet supports this expression for at least some inputs or 
forms. An opt-in may be required, and some inputs or forms may fall back to 
Spark; see the row and [Default implementations and 
opt-ins](compatibility/index.md#default-implementations-and-opt-ins) for known 
differences from Spark. |

Review Comment:
   This row, together with the removed sentence "Expressions marked ✅ Supported 
are enabled by default and produce Spark-compatible results", changes what the 
support legend promises. That is a compatibility policy change, not one of the 
`N1` to `N5` wording rules, and it follows the model from 
https://github.com/apache/datafusion-comet/pull/4721. The new text ("for at 
least some inputs or forms. An opt-in may be required") also says little about 
default behavior. I checked the `Incompatible()` and `Unsupported()` routing in 
`QueryPlanSerde.scala` (lines 1049 to 1099) and the `CometRLike`, 
`CometSequence`, `CometPercentile` and `CometDateFormat` rows against the code, 
and they hold. The concern is review scope. The compatibility model rewrite 
(this legend, `compatibility/index.md`, the five expression indexes, `json.md`) 
is mixed into a 73-file wording sweep. Could it move to its own PR so the 
maintainers who own that model can review it separately?



##########
spark/src/main/scala/org/apache/comet/GenerateDocs.scala:
##########
@@ -417,9 +417,9 @@ object GenerateDocs {
       }
       if (n.incompatibleReasons.nonEmpty) {
         val header = if (n.conditionalNativeDefault) {
-          "\nFor applicable cases that are not selected for native execution 
automatically," +
-            s" `$name` is evaluated in the JVM using Spark's own 
code-generated implementation" +
-            " (run inside the Comet pipeline) by default." +
+          "\nFor applicable cases where Comet does not select its native 
implementation" +

Review Comment:
   This branch's sibling a few lines down (`else if (n.nativeOptIn)`, line 427) 
still emits "which matches Spark exactly" for the codegen-dispatch default. 
This PR removes that claim from `compatibility/index.md`, which now says 
dispatch is subject to Arrow's representation limits and cites `make_interval` 
(https://github.com/apache/datafusion-comet/issues/5279). `make_interval` is a 
`CodegenDispatchFallback` serde, so its generated section still says the 
dispatched path matches Spark exactly. Since this PR already edits this 
generator and `GenerateDocsSuite`, could the sentence be dropped or softened 
here too? I did not run the generator. I only read the template at the PR head.



-- 
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