Repository navigation
fix(metadata): match list_tables table_types case-sensitively for Thrift parity - #393
Merged
Merged
Conversation
…ift parity #139 made the table_types filter case-insensitive, so ["table"] matched TABLE rows. Thrift GetTables matches exactly (server-side in SparkGetTablesOperation, and JDBC re-filters client-side the same way), so the kernel returned rows where Thrift returned none. Restore the exact match. Co-authored-by: Isaac <no-reply@databricks.com> Signed-off-by: Vu Anh Phung <vu.phung@databricks.com>
|
Kernel integration tests triggered. View status. Results post back here as the "Kernel Integration Tests" check. |
vikrantpuppala
approved these changes
Oct 12, 2026
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
#139 made the
list_tablestable_typesfilter case-insensitive, so["table"]matchedTABLErows. ThriftGetTablesmatches exactly. The server filters withtableTypes.contains(tableType)inSparkGetTablesOperation, and JDBC re-filters client-side the same way. Python and Node.js forward the list to the server unchanged. So the kernel returned rows where Thrift returned none. This PR restores the exact match infilter_tables_by_type, which covers both the SHOW TABLES and the Thrift-native metadata paths. Catalog matching on the native path stays case-insensitive.Verified live on a pecotesting warehouse (
main.default_schema, one table + one view) with kernel 1.1.0:table_types["TABLE"]["table"]["view"]With this change, the kernel columns match Thrift.
Follow-up:
tests/e2e/test_kernel_backend.py::test_tables_table_types_filter_is_case_insensitivein databricks-sql-python asserts the old behavior. It needs flipping when the connector picks up this kernel.Testing
Updated unit tests for the exact match and added a case-sensitivity test.
cargo +stable fmt --all,cargo clippy --all-targets -- -D warnings,cargo testall pass.This pull request and its description were written by Isaac.