xanderbailey commented on code in PR #26943:
URL: https://github.com/apache/datafusion/pull/26943#discussion_r4776741091


##########
datafusion/common/src/config.rs:
##########
@@ -1100,6 +1100,18 @@ config_namespace! {
         /// inferred and will be represented in the table schema).
         pub listing_table_factory_infer_partitions: bool, default = true
 
+        /// Should a `ListingTable` return an error, rather than skip the 
file, when a
+        /// listed file's directories do not match the table's partition 
columns.
+        /// When true, every file must be under one `key=value` directory per 
partition
+        /// column, in the declared order, with no further `key=value` 
directories below
+        /// them (this also applies to tables without partition columns). 
Defaults to
+        /// false (non-matching files are skipped). Only files listed for a 
query are
+        /// checked, so partition filters that narrow the listing prefix 
narrow the check,
+        /// and a `LIMIT` can stop the listing before it reaches a 
non-matching file.
+        /// `INSERT INTO` lists every file in the table, so it also fails when 
any file
+        /// does not match.

Review Comment:
   Yep!



-- 
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]

Reply via email to