zhuqi-lucas commented on code in PR #14922: URL: https://github.com/apache/datafusion/pull/14922#discussion_r1983006435
########## datafusion/sqllogictest/test_files/expr.slt: ########## @@ -478,10 +478,16 @@ a statement ok create table foo (a varchar, b varchar) as values ('a', 'b'); -query T +query error SELECT concat_ws('',a,b,'c') from foo ---- -abc +DataFusion error: Optimizer rule 'optimize_projections' failed +caused by +Check optimizer-specific invariants after optimizer rule: optimize_projections +caused by +Internal error: Failed due to a difference in schemas, original schema: DFSchema { inner: Schema { fields: [Field { name: "concat_ws(Utf8(\"\"),foo.a,foo.b,Utf8(\"c\"))", data_type: Utf8, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }], metadata: {} }, field_qualifiers: [None], functional_dependencies: FunctionalDependencies { deps: [] } }, new schema: DFSchema { inner: Schema { fields: [Field { name: "concat_ws(Utf8(\"\"),foo.a,foo.b,Utf8(\"c\"))", data_type: Utf8View, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }], metadata: {} }, field_qualifiers: [None], 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 Review Comment: Looks like concat_ws with different datatype which can't support after this PR. -- 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: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org