Skip to content

chore: additional stats for schema sizes - #6020

Merged
achettyiitr merged 2 commits into
release/1.52.xfrom
chore.stats-for-schemas-size
Jun 20, 2025
Merged

achettyiitr merged 2 commits into
release/1.52.xfrom
chore.stats-for-schemas-size

Conversation

@achettyiitr

@achettyiitr achettyiitr commented Jun 19, 2025 •

Copy link
Copy Markdown
Member

Description

  • Additional stats for:
    • Schema size for staging files.
    • Schema size for the warehouse cached schema.
    • Schema size for the Consolidated upload schema.
  • Centralising stats for operations like (add tables, add columns, alter columns) for the integrations package. Currently, these stats are not being sent for SNOWPIPE_STREAMING destinations.

Linear Ticket

  • Resolves WAR-775

Security

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

@achettyiitr achettyiitr changed the title chore: schema stats chore: additional stats for schema sizes Jun 19, 2025
@achettyiitr
achettyiitr force-pushed the chore.stats-for-schemas-size branch 4 times, most recently from ec4d923 to 3e35bfd Compare June 19, 2025 18:42
Comment thread warehouse/internal/api/http.go Outdated

@achettyiitr achettyiitr Jun 19, 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.

Also, we are only passing ID for Source and Destination and nothing else, so Destination.DestinationDefinition.Name will come as empty. Removing it warehouseID is not needed.

Comment thread warehouse/router/upload_stats.go Outdated

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.

Adding sourceType here.

@codecov

codecov Bot commented Jun 19, 2025 •

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 77.01149% with 20 lines in your changes missing coverage. Please review.

Project coverage is 76.63%. Comparing base (e379398) to head (aeacb49).
Report is 1 commits behind head on release/1.52.x.

Files with missing lines Patch % Lines
warehouse/integrations/manager/stats.go 75.00% 8 Missing and 1 partial ⚠️
warehouse/internal/api/http.go 61.53% 4 Missing and 1 partial ⚠️
warehouse/integrations/manager/manager.go 50.00% 2 Missing and 1 partial ⚠️
warehouse/schema/schema.go 80.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@               Coverage Diff               @@
##           release/1.52.x    #6020   +/-   ##
===============================================
  Coverage           76.62%   76.63%           
===============================================
  Files                 514      515    +1     
  Lines               69166    69220   +54     
===============================================
+ Hits                52999    53045   +46     
  Misses              13280    13280           
- Partials             2887     2895    +8     

☔ 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/integrations/manager/stats.go Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is warehouseID needed? I see all the tags added separately

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.

Yeah, it's not needed. keeping for now to be similar to the previous metrics generation.

@achettyiitr
achettyiitr requested a review from vyeshwanth June 20, 2025 04:15
Comment thread warehouse/integrations/manager/stats.go Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

minor: name should be managerWithStats or statsManager?

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 already statsManager. Do you mean should I rename to managerWithStats?

@achettyiitr
achettyiitr force-pushed the chore.stats-for-schemas-size branch from 3e35bfd to aeacb49 Compare June 20, 2025 06:19
@achettyiitr
achettyiitr merged commit 09091c7 into release/1.52.x Jun 20, 2025
@achettyiitr
achettyiitr deleted the chore.stats-for-schemas-size branch June 20, 2025 06:40
achettyiitr pushed a commit that referenced this pull request Jun 20, 2025
🤖 I have created a release *beep* *boop*
---


##
[1.52.4](v1.52.3...v1.52.4)
(2025-06-20)


### Miscellaneous

* additional stats for schema sizes
([#6020](#6020))
([09091c7](09091c7))
* warehouse transformations parsing timestamp and serialisation
([#6025](#6025))
([e379398](e379398))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
achettyiitr added a commit that referenced this pull request Jun 20, 2025
# Description

Syncing patch release v1.52.4 to main branch

**↓↓ Please review and edit commit overrides before merging ↓↓**

BEGIN_COMMIT_OVERRIDE
chore: warehouse transformations parsing timestamp and serialisation
(#6025)
chore: additional stats for schema sizes (#6020)
END_COMMIT_OVERRIDE

---------

Co-authored-by: Mihir Gandhi <[email protected]>
Co-authored-by: Aris Tzoumas <[email protected]>
Co-authored-by: shekhar-rudder <[email protected]>
Co-authored-by: Utsab Chowdhury <[email protected]>
Co-authored-by: Rohith BCS <[email protected]>
Co-authored-by: Akash Chetty <[email protected]>
atzoum added a commit that referenced this pull request Jun 23, 2025
# Description

Syncing patch release v1.52.4 to main branch

**↓↓ Please review and edit commit overrides before merging ↓↓**

BEGIN_COMMIT_OVERRIDE
chore: warehouse transformations parsing timestamp and serialisation
(#6025)
chore: additional stats for schema sizes (#6020)
END_COMMIT_OVERRIDE

---------

Co-authored-by: Mihir Gandhi <[email protected]>
Co-authored-by: Aris Tzoumas <[email protected]>
Co-authored-by: shekhar-rudder <[email protected]>
Co-authored-by: Utsab Chowdhury <[email protected]>
Co-authored-by: Rohith BCS <[email protected]>
Co-authored-by: Akash Chetty <[email protected]>
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