leoyvens opened a new pull request, #10394: URL: https://github.com/apache/datafusion/pull/10394
Previously, `LogicalPlan::schema` would return the input schema for DML plans, rather than the expected output schema. It is typical for the output to be the `count` of rows affected by the DML statement, so the code assumes that. See `fn dml_output_schema` for a test. ## Which issue does this PR close? Closes #10393. ## Rationale for this change Current behaviour is wrong. ## Are these changes tested? Yes there is a test `fn dml_output_schema`. ## Are there any user-facing changes? The bug being fixed is visible to users of the DataFrame API. -- 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]
