Skip to content

fix: remove catalog validation from ListColumns method for databricks - #464

Merged
am6010 merged 1 commit into
mainfrom
fix/pro-5487-databricks-cross-database-column
Mar 31, 2026
Merged

am6010 merged 1 commit into
mainfrom
fix/pro-5487-databricks-cross-database-column

Conversation

@am6010

@am6010 am6010 commented Mar 27, 2026 •

Copy link
Copy Markdown
Contributor

🔒 Scanned for secrets using gitleaks 8.28.0

Summary

Databricks' ListColumns method was validating that the requested catalog matched the current catalog, which prevented cross-database column listing. This PR removes that validation so columns can be listed from any accessible catalog, not just the one currently in use.

Key Changes

  • Removed the catalog validation check in ListColumns that compared relation.Catalog against CurrentCatalog and errored if they didn't match
  • This aligns ListColumns with the recently added catalog-aware APIs that support cross-catalog operations

Things to Note

  • The underlying db.DB.ListColumns already handles catalog-qualified queries correctly — the removed validation was an unnecessary restriction

Linear Ticket

PRO-5487

🤖 Generated with Claude Code

🔒 Scanned for secrets using gitleaks 8.28.0
@codecov

codecov Bot commented Mar 27, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.57%. Comparing base (7cff782) to head (e261b59).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #464      +/-   ##
==========================================
+ Coverage   84.54%   84.57%   +0.02%     
==========================================
  Files          96       96              
  Lines        4343     4337       -6     
==========================================
- Hits         3672     3668       -4     
+ Misses        505      504       -1     
+ Partials      166      165       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@am6010
am6010 marked this pull request as ready for review March 27, 2026 15:58
@am6010
am6010 requested a review from atzoum as a code owner March 27, 2026 15:58
@am6010 am6010 changed the title fix: remove catalog validation from ListColumns method fix: remove catalog validation from ListColumns method for databricks Mar 30, 2026
@am6010
am6010 merged commit 38b5161 into main Mar 31, 2026
34 of 37 checks passed
@am6010
am6010 deleted the fix/pro-5487-databricks-cross-database-column branch March 31, 2026 10:03
atzoum pushed a commit that referenced this pull request Apr 3, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.25.2](v1.25.1...v1.25.2)
(2026-04-03)


### Bug Fixes

* **redshift:** handle timetz values without timezone offset from Data
API ([#466](#466))
([8680bb8](8680bb8))
* remove catalog validation from ListColumns method for databricks
([#464](#464))
([38b5161](38b5161))


### Miscellaneous

* **deps:** bump actions/create-github-app-token from 2.2.1 to 3.0.0
([#458](#458))
([595a2f8](595a2f8))
* **deps:** bump actions/download-artifact from 5.0.0 to 8.0.1
([#457](#457))
([897e669](897e669))
* **deps:** bump actions/setup-go from 6.2.0 to 6.3.0
([#452](#452))
([e0fe47f](e0fe47f))
* **deps:** bump actions/upload-artifact from 4.6.2 to 7.0.0
([#448](#448))
([8c39d00](8c39d00))
* **deps:** bump cloud.google.com/go/bigquery from 1.73.1 to 1.74.0
([#451](#451))
([8eb0b1b](8eb0b1b))
* **deps:** bump github.com/aws/aws-sdk-go-v2/config from 1.32.7 to
1.32.12 ([#460](#460))
([efb0425](efb0425))
* **deps:** bump github.com/databricks/databricks-sql-go from 1.9.0 to
1.10.0 ([#443](#443))
([e25c0c9](e25c0c9))
* **deps:** bump golang.org/x/crypto from 0.48.0 to 0.49.0
([#459](#459))
([e782b9c](e782b9c))
* **deps:** bump step-security/harden-runner from 2.14.2 to 2.16.0
([#456](#456))
([7a6d6bf](7a6d6bf))
* **deps:** bump the go_modules group across 1 directory with 4 updates
([#467](#467))
([8797b7c](8797b7c))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: rudderstack-github-actions[bot] <236995729+rudderstack-github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants