spark-test commented on code in PR #60531:
URL: https://github.com/apache/spark/pull/60531#discussion_r4620166504


##########
sql/catalyst/src/main/java/org/apache/spark/sql/vectorized/ColumnarBatchRow.java:
##########
@@ -228,6 +229,13 @@ public Object get(int ordinal, DataType dataType) {
     } else if (dataType instanceof UserDefinedType<?> udt) {
       return get(ordinal, udt.sqlType());
     } else {
+      // Framework types: dispatch through PhysicalDataType which resolves the 
raw

Review Comment:
   Thanks, the NullType gate, the updated comments and the TIME and interval 
checks look right. One part of the requested coverage is still missing: no test 
reads a GEOMETRY or GEOGRAPHY field through `ColumnarRow.get`, which now 
returns the child vector's `BinaryView` where it used to throw 
`_LEGACY_ERROR_TEMP_3155`. The new test, "SPARK-56076: generic get reads types 
that are not matched by name through their physical type", builds its struct 
with only a TIME and an interval field, so a regression in the geometry route 
would leave the suite green. Adding a geometry and a geography field to that 
struct and checking `get` against `getBinaryView` would close it.
   
   <!-- SPARK_DEV_REVIEW_REPLY 
{"feedback_id":"inline:4582037871","thread_id":"inline:4582037871","verdict_sha256":"01c7041e541bc46bbe367ee2a764037239847c52a19cd5ddb7d64fc4b65a0e69"}
 -->



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