kosiew commented on code in PR #18866:
URL: https://github.com/apache/datafusion/pull/18866#discussion_r2554475864
##########
datafusion/substrait/tests/cases/roundtrip_logical_plan.rs:
##########
@@ -1266,6 +1268,49 @@ async fn roundtrip_values_no_columns() -> Result<()> {
Ok(())
}
+#[tokio::test]
+async fn roundtrip_values_with_scalar_function() -> Result<()> {
+ let ctx = create_context().await?;
+ let expr = map(vec![lit("a")], vec![lit(1)]);
+ let plan = LogicalPlanBuilder::values(vec![vec![expr]])?.build()?;
+ let expected = ctx.state().optimize(&plan)?;
+
+ let actual = substrait_roundtrip(&plan, &ctx).await?;
+
+ let normalize = |plan: &LogicalPlan| match plan {
Review Comment:
Renamed to strip_aliases_from_values
--
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]