JasonLi-cn opened a new issue, #13251: URL: https://github.com/apache/datafusion/issues/13251
### Describe the bug the `field_qualifiers` in the DFSchema are missing when producer `LogicalPlan::EmptyRelation` ### To Reproduce Add test in file: datafusion/substrait/tests/cases/roundtrip_logical_plan.rs ```rust #[tokio::test] async fn test_empty_relation() -> Result<()> { roundtrip("SELECT * FROM data LIMIT 0").await } ``` Error ```shell assertion `left == right` failed left: DFSchema { inner: Schema { fields: [Field { name: "a", data_type: Int64, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }, Field { name: "b", data_type: Decimal128(5, 2), nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }, Field { name: "c", data_type: Date32, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }, Field { name: "d", data_type: Boolean, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }, Field { name: "e", data_type: UInt32, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }, Field { name: "f", data_type: Utf8, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }], metadata: {} }, field_qualifiers: [Some(Bare { table: "data" }), Some(Bare { table: "data" }), Some(Bare { table: "data" }), Some(Bare { table: "data" }), Some(Bare { table: "data" }), Some(Bare { table: "data" })], functional_dependencies: FunctionalDependencies { deps: [] } } right: DFSchema { inner: Schema { fields: [Field { name: "a", data_type: Int64, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }, Field { name: "b", data_type: Decimal128(5, 2), nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }, Field { name: "c", data_type: Date32, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }, Field { name: "d", data_type: Boolean, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }, Field { name: "e", data_type: UInt32, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }, Field { name: "f", data_type: Utf8, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }], metadata: {} }, field_qualifiers: [None, None, None, None, None, None], functional_dependencies: FunctionalDependencies { deps: [] } } ``` ### Expected behavior pass test ### Additional context _No response_ -- 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.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