Pastoray commented on PR #432:
URL: https://github.com/apache/datafusion-spark/pull/432#issuecomment-7290723002

   Thanks for this, @Aryan2210! I'm not a maintainer, so this is just a 
contributor's read.
   
   **Verification.** I checked this out and ran it.
   
   - Against PySpark 4.3.0, the results in #409 match, and so does the 
ANSI-ordering claim in the code comment: an invalid URL with a key and a 
non-QUERY part gives NULL, while with `QUERY` it raises `INVALID_URL`.
   - With the fix reverted and these tests kept, the new slt cases fail with 
exactly the symptom from the issue. With the fix, the full sqllogictest suite 
passes, along with the unit tests. `fmt` and `clippy` are clean.
   - I also tried NULL part/key/url, an empty key, `Utf8View`/`LargeUtf8` 
inputs and mixed arrays. All match Spark.
   
   **One heads-up (not about the logic).** #419 merged today and requires 
`CAST(x AS type)` in `.slt` files. The new tests here use `::string`, so after 
a rebase `test_test_files_parse` fails (`url/parse_url.slt:331`). It merges 
cleanly, so GitHub won't flag it. Since the existing tests in these files use 
plain literals, I think most of the casts can simply be dropped, and the rest 
can be `CAST(... AS STRING)`.
   
   Optionally, a one-line unit test next to 
`test_parse_query_no_key_vs_with_key` would pin the behavior at the Rust level, 
but the slt coverage is already thorough.
   
   LGTM once the `::` casts are updated.


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