berkaysynnada commented on code in PR #15770:
URL: https://github.com/apache/datafusion/pull/15770#discussion_r2083518706
##########
datafusion/sqllogictest/test_files/prepare.slt:
##########
@@ -264,16 +264,19 @@ WHERE run_id = 'foo'
ORDER BY random()
LIMIT $1
-query I
+query error
EXECUTE get_N_rand_ints_from_last_run(1);
----
-1
+DataFusion error: Internal error: PhysicalOptimizer rule 'LimitPushdown'
failed. Schema mismatch. Expected original schema: Schema { fields: [Field {
name: "id", data_type: Int32, nullable: true, dict_id: 0, dict_is_ordered:
false, metadata: {} }], metadata: {} }, got new schema: Schema { fields: [Field
{ name: "id", data_type: Int32, nullable: true, dict_id: 0, dict_is_ordered:
false, metadata: {} }, Field { name: "run_id", data_type: Utf8, nullable: true,
dict_id: 0, dict_is_ordered: false, metadata: {} }], metadata: {} }.
Review Comment:
Perhaps @jonahgao can make a quick diagnose here, as I cannot debug these
EXECUTE's via "explain" or "explain verbose". I'm also open if someone has any
idea how these changes break the EXECUTE feature
--
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]