diff --git a/NEXT_CHANGELOG.md b/NEXT_CHANGELOG.md index 04384abb..7662fc32 100644 --- a/NEXT_CHANGELOG.md +++ b/NEXT_CHANGELOG.md @@ -50,6 +50,9 @@ changes go in their respective binding's NEXT_CHANGELOG. ### Fixed +- `list_tables` now matches `table_types` case-sensitively, matching Thrift + `GetTables`: `["table"]` no longer matches `TABLE` rows. + --- *Note: When making changes, please add your change under the appropriate section with a brief description. At release time, move the entries here diff --git a/src/metadata/thrift_shape.rs b/src/metadata/thrift_shape.rs index 3b806328..2a755096 100644 --- a/src/metadata/thrift_shape.rs +++ b/src/metadata/thrift_shape.rs @@ -607,7 +607,7 @@ pub(crate) fn reshape_tables( // earlier #72 reading (empty == null) after establishing that // databricks-jdbc's `listTables` has always short-circuited an empty // array to "return nothing". An empty `Some(&[])` therefore flows - // through `filter_tables_by_type`, whose `types.iter().any(..)` is + // through `filter_tables_by_type`, whose `types.contains(..)` is // `false` for every row → an empty (correctly-typed) batch. let filtered = match table_types { None => reshaped, @@ -1010,13 +1010,10 @@ fn filter_tables_by_type(batch: &RecordBatch, types: &[&str]) -> Result