yutannihilation commented on code in PR #449:
URL: https://github.com/apache/sedona-db/pull/449#discussion_r2616651698


##########
rust/sedona-functions/src/st_setsrid.rs:
##########
@@ -274,8 +274,11 @@ impl SedonaScalarKernel for SRIDifiedKernel {
 
         let crs = match scalar_args[orig_args_len] {
             Some(crs) => crs,
-            None => return Ok(None),
+            // If the SRID is not a literal, fall back to the inner result 
without applying a CRS.
+            // This allows planning to succeed when the SRID is provided as a 
column or expression.
+            None => return Ok(Some(inner_result)),
         };

Review Comment:
   I'm yet to figure out how the things work, but it seems the error was due to 
`None` CRS passed here. I got this solution from Codex and this seems to work, 
but I'm don't know yet if this does the right thing or not.



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

Reply via email to