Skip to content

feat: Implement disable_post_processing in /v1/sql #9331

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 17, 2025

Conversation

mcheshkov
Copy link
Contributor

@mcheshkov mcheshkov commented Mar 11, 2025

Check List

  • Tests have been run in packages where changes made if available
  • Linter has been run for changed code
  • Tests for the changes have been added if not covered yet
  • Docs have been added / updated if required

Description of Changes Made (if issue reference is not provided)

Second part of #9301

Copy link

codecov bot commented Mar 11, 2025

Codecov Report

Attention: Patch coverage is 98.92473% with 1 line in your changes missing coverage. Please review.

Project coverage is 83.73%. Comparing base (baef5f9) to head (a39ba8a).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
rust/cubesql/cubesql/src/compile/rewrite/cost.rs 97.50% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #9331      +/-   ##
==========================================
- Coverage   83.76%   83.73%   -0.03%     
==========================================
  Files         229      229              
  Lines       82697    82538     -159     
==========================================
- Hits        69268    69117     -151     
+ Misses      13429    13421       -8     
Flag Coverage Δ
cubesql 83.73% <98.92%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mcheshkov mcheshkov force-pushed the disable-postprocessing-in-sql-endpoint branch from 13d8185 to 02c0bab Compare March 11, 2025 20:12
@mcheshkov mcheshkov marked this pull request as ready for review March 11, 2025 21:24
@mcheshkov mcheshkov requested review from a team as code owners March 11, 2025 21:24
Copy link
Member

@KSDaemon KSDaemon left a comment

Choose a reason for hiding this comment

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

👍🏻 LGTM!

@@ -330,6 +330,7 @@ class ApiGateway {
if (req.query.format === 'sql') {
await this.sql4sql({
query: req.query.query,
disablePostProcessing: req.query.disable_post_processing === 'true',
Copy link
Member

Choose a reason for hiding this comment

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

I see that we have disable_post_processing in snake-case defined in the docs... But in other places we have CamelCase.... Maybe we can review and align it?

Copy link
Member

Choose a reason for hiding this comment

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

+1 for camelCase.

I assume we need to follow the style we used previously, and it should be camelCase.

cC @igorlukanin

@mcheshkov mcheshkov force-pushed the disable-postprocessing-in-sql-endpoint branch from ee598bb to a39ba8a Compare March 17, 2025 18:10
@mcheshkov mcheshkov merged commit c336b10 into master Mar 17, 2025
83 checks passed
@mcheshkov mcheshkov deleted the disable-postprocessing-in-sql-endpoint branch March 17, 2025 18:47
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.

4 participants