Skip to content

fix: destination namespaces api to contain tablename filter - #6388

Merged
achettyiitr merged 1 commit into
masterfrom
fix.destination-namespaces-api
Oct 21, 2025
Merged

achettyiitr merged 1 commit into
masterfrom
fix.destination-namespaces-api

Conversation

@achettyiitr

@achettyiitr achettyiitr commented Sep 29, 2025 •

Copy link
Copy Markdown
Member

Description

  • Post adding table-level schemas, we would need to add a filter for table_name as well for the Destination Namespaces query, as there will be too many entries present.
  • More details in notion doc.

Linear Ticket

  • Resolves WAR-1175

Security

  • The code changed/added as part of this pull request won't create any security issues with how the software is being used.

@rudderlabs rudderlabs deleted a comment from cursor Bot Sep 29, 2025
@achettyiitr achettyiitr changed the title fix: destination namespaces api to contain table_name filter fix: destination namespaces api to contain tablename filter Sep 29, 2025
@codecov

codecov Bot commented Sep 29, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.76%. Comparing base (f714b32) to head (6ad5726).
⚠️ Report is 4 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6388   +/-   ##
=======================================
  Coverage   77.75%   77.76%           
=======================================
  Files         529      529           
  Lines       70344    70343    -1     
=======================================
+ Hits        54697    54700    +3     
+ Misses      12823    12817    -6     
- Partials     2824     2826    +2     

☔ 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.

Comment thread warehouse/internal/repo/schema.go Resolved
db, ctx := setupDB(t), context.Background()
now := timeutil.Now()
r := repo.NewWHSchemas(db, conf, logger.NOP)
now := time.Date(2023, 1, 1, 0, 0, 0, 0, time.UTC)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No changes in tests, just refactored it.

Comment thread warehouse/internal/repo/schema.go Outdated
namespace
FROM ` + whSchemaTableName + `
WHERE destination_id = $1
WHERE destination_id = $1 AND table_name = ''

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix: -> If I understand this change correctly, it is a performance fix and not correctness fix, rt?

@achettyiitr achettyiitr Oct 16, 2025 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a bug. When this API got introduced, table level schemas were also happening and this filter got missed.

@achettyiitr
achettyiitr force-pushed the fix.destination-namespaces-api branch 2 times, most recently from 14e2bc6 to 5a1f97a Compare October 17, 2025 07:40
@achettyiitr
achettyiitr requested review from krishna2020 and removed request for vyeshwanth October 17, 2025 07:41
@achettyiitr
achettyiitr force-pushed the fix.destination-namespaces-api branch from 5a1f97a to 6ad5726 Compare October 17, 2025 11:04
@achettyiitr
achettyiitr merged commit 61cffa4 into master Oct 21, 2025
@achettyiitr
achettyiitr deleted the fix.destination-namespaces-api branch October 21, 2025 07:33
This was referenced Oct 27, 2025
mihir20 pushed a commit that referenced this pull request Oct 27, 2025
🤖 I have created a release *beep* *boop*
---


##
[1.62.0-rc.1](v1.61.0...v1.62.0-rc.1)
(2025-10-27)


### Features

* introduce circuit breakers for oauth
([#6411](#6411))
([b9ed172](b9ed172))


### Bug Fixes

* deltalake fetch table attributes
([#6455](#6455))
([49907dc](49907dc))
* destination namespaces api to contain tablename filter
([#6388](#6388))
([61cffa4](61cffa4))
* repo cardinatlity for warehouse queries
([#6451](#6451))
([ac9adc4](ac9adc4))


### Miscellaneous

* always emit transformer_outgoing_request_latency metric
([#6454](#6454))
([33b742c](33b742c))
* avoid scanning all schemas and use limit 1
([#6396](#6396))
([8bb69ee](8bb69ee))
* bump rudder-go-kit to 0.63.4
([#6457](#6457))
([d499351](d499351))
* cleanup Avoid using beigntx within repo package and instead use
WithTx.
([#6389](#6389))
([21b7129](21b7129))
* improve cron tracker
([#6397](#6397))
([82407f4](82407f4))
* improve logging reporting event name trimming
([#6424](#6424))
([ce4d56d](ce4d56d))
* improve pending uploads
([#6399](#6399))
([717f6a6](717f6a6))
* improve populate table level schemas
([#6395](#6395))
([a0aa222](a0aa222))
* improve table level schemas
([#6398](#6398))
([a2d3786](a2d3786))
* remove monitor database
([#6393](#6393))
([a02c218](a02c218))
* remove unused oauthV2Enabled logger
([#6465](#6465))
([bf55861](bf55861))
* retaining both pickup query throttling configuration key options
([#6453](#6453))
([a51f395](a51f395))
* **router:** pickup query throttling should be enabled by default
([#6447](#6447))
([ff18dde](ff18dde))
* security improvements
([#6430](#6430))
([ce4d56d](ce4d56d))
* simplify pickup throttling configuration
([#6460](#6460))
([7fb035b](7fb035b))
* unused dependencies
([#6392](#6392))
([8e585b7](8e585b7))
* use org-wide docker registry mirror configuration
([#6444](#6444))
([f714b32](f714b32))
* using go-kit maxprocs
([#6433](#6433))
([674ab55](674ab55))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
mihir20 pushed a commit that referenced this pull request Oct 28, 2025
🤖 I have created a release *beep* *boop*
---


##
[1.62.0](v1.61.0...v1.62.0)
(2025-10-27)


### Features

* introduce circuit breakers for oauth
([#6411](#6411))
([b9ed172](b9ed172))


### Bug Fixes

* deltalake fetch table attributes
([#6455](#6455))
([49907dc](49907dc))
* destination namespaces api to contain tablename filter
([#6388](#6388))
([61cffa4](61cffa4))
* repo cardinatlity for warehouse queries
([#6451](#6451))
([ac9adc4](ac9adc4))


### Miscellaneous

* always emit transformer_outgoing_request_latency metric
([#6454](#6454))
([33b742c](33b742c))
* avoid scanning all schemas and use limit 1
([#6396](#6396))
([8bb69ee](8bb69ee))
* bump rudder-go-kit to 0.63.4
([#6457](#6457))
([d499351](d499351))
* cleanup Avoid using beigntx within repo package and instead use
WithTx.
([#6389](#6389))
([21b7129](21b7129))
* improve cron tracker
([#6397](#6397))
([82407f4](82407f4))
* improve logging reporting event name trimming
([#6424](#6424))
([ce4d56d](ce4d56d))
* improve pending uploads
([#6399](#6399))
([717f6a6](717f6a6))
* improve populate table level schemas
([#6395](#6395))
([a0aa222](a0aa222))
* improve table level schemas
([#6398](#6398))
([a2d3786](a2d3786))
* remove monitor database
([#6393](#6393))
([a02c218](a02c218))
* remove unused oauthV2Enabled logger
([#6465](#6465))
([bf55861](bf55861))
* retaining both pickup query throttling configuration key options
([#6453](#6453))
([a51f395](a51f395))
* **router:** pickup query throttling should be enabled by default
([#6447](#6447))
([ff18dde](ff18dde))
* security improvements
([#6430](#6430))
([ce4d56d](ce4d56d))
* simplify pickup throttling configuration
([#6460](#6460))
([7fb035b](7fb035b))
* unused dependencies
([#6392](#6392))
([8e585b7](8e585b7))
* use org-wide docker registry mirror configuration
([#6444](#6444))
([f714b32](f714b32))
* using go-kit maxprocs
([#6433](#6433))
([674ab55](674ab55))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
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.

3 participants