alamb commented on code in PR #11277:
URL: https://github.com/apache/datafusion/pull/11277#discussion_r1666963235


##########
datafusion/substrait/tests/cases/roundtrip_logical_plan.rs:
##########
@@ -327,7 +327,7 @@ async fn simple_scalar_function_pow() -> Result<()> {
 
 #[tokio::test]
 async fn simple_scalar_function_substr() -> Result<()> {
-    roundtrip("SELECT * FROM data WHERE a = SUBSTR('datafusion', 0, 3)").await
+    roundtrip("SELECT SUBSTR(f, 1, 3) FROM data").await

Review Comment:
   Thank you for the explanation
   
   No need to change the PR
   
   The issue seems to be that DataFusion partially evaluates the expression



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