BryanEmond commented on PR #6723:
URL:
https://github.com/apache/arrow-datafusion/pull/6723#issuecomment-1599189261
I know this push doesn't work, but I really don't get it. Now the unwrap()
error is gone but I get this error.
```
Running "timestamps.slt"
External error: query failed: DataFusion error: simplify_expressions
caused by
Internal error: Optimizer rule 'simplify_expressions' failed, due to
generate a different schema,
original schema:
DFSchema { fields: [DFField { qualifier: None, field: Field { name:
"date_trunc(Utf8(\"year\"),NULL)", data_type: Timestamp(Nanosecond, None),
nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} } }],
metadata: {} },
new schema:
DFSchema { fields: [DFField { qualifier: None, field: Field { name:
"date_trunc(Utf8(\"year\"),NULL)", data_type: Null, nullable: true, dict_id: 0,
dict_is_ordered: false, metadata: {} } }], metadata: {} }.
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 DATE_TRUNC('year', NULL);
at tests/sqllogictests/test_files/timestamps.slt:840
```
--
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]