jayzhan211 commented on code in PR #6796:
URL: https://github.com/apache/arrow-datafusion/pull/6796#discussion_r1280747311
##########
datafusion/optimizer/src/optimizer.rs:
##########
@@ -422,6 +424,11 @@ fn assert_schema_is_the_same(
prev_plan: &LogicalPlan,
new_plan: &LogicalPlan,
) -> Result<()> {
+ if rule_name == "unnest_expressions" {
Review Comment:
External error: query failed: DataFusion error: unnest_expressions
caused by
Internal error: Optimizer rule 'unnest_expressions' failed, due to generate
a different schema, original schema: DFSchema { fields: [DFField { qualifier:
None, field: Field { name: "unnest(make_array(Int64(1),Int64(2),Int64(3)))",
data_type: List(Field { name: "item", data_type: Int64, nullable: true,
dict_id: 0, dict_is_ordered: false, metadata: {} }), nullable: true, dict_id:
0, dict_is_ordered: false, metadata: {} } }, DFField { qualifier: None, field:
Field { name: "unnest(make_array(Int64(4),Int64(5)))", data_type: List(Field {
name: "item", data_type: Int64, nullable: true, dict_id: 0, dict_is_ordered:
false, metadata: {} }), nullable: true, dict_id: 0, dict_is_ordered: false,
metadata: {} } }], metadata: {}, functional_dependencies:
FunctionalDependencies { deps: [] } }, new schema: DFSchema { fields: [DFField
{ qualifier: Some(Bare { table: "sq0" }), field: Field { name: "col0",
data_type: Int64, nullable: true, dict_id: 0, dict_is_ordered: false, metadata:
{} } }, DFField
{ qualifier: Some(Bare { table: "sq1" }), field: Field { name: "col1",
data_type: Int64, nullable: true, dict_id: 0, dict_is_ordered: false, metadata:
{} } }], metadata: {}, functional_dependencies: FunctionalDependencies { deps:
[] } }. This was likely caused by a bug in DataFusion's code and we would
welcome that you file an bug report in our issue tracker
[SQL] select unnest(make_array(1,2,3)),
unnest(make_array(4,5))
;
--
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]