Skip to content

feat: implement CVAS/CTAS in sqlglot#33525

Merged
betodealmeida merged 1 commit intomasterfrom
sqlglot-ctas-cvas
May 28, 2025
Merged

feat: implement CVAS/CTAS in sqlglot#33525
betodealmeida merged 1 commit intomasterfrom
sqlglot-ctas-cvas

Conversation

@betodealmeida
Copy link
Member

@betodealmeida betodealmeida commented May 19, 2025

SUMMARY

Part of #26786, stacked on:

Implements the as_create_table, is_valid_cvas, and is_valid_ctas methods in sqlglot.

Added unit tests from the sqlparse implementation.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

Copy link

@korbit-ai korbit-ai bot left a comment

Choose a reason for hiding this comment

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

Review by Korbit AI

Korbit automatically attempts to detect when you fix issues in new commits.
Category Issue Status
Documentation Incorrect return value documentation ▹ view 🧠 Not in standard
Documentation Undocumented enum options ▹ view 🧠 Not in scope
Files scanned
File Path Reviewed
superset/sql/parse.py

Explore our documentation to understand the languages and file types we support and the files we ignore.

Check out our docs on how you can make Korbit work best for you and your team.

Loving Korbit!? Share us on LinkedIn Reddit and X

Comment on lines +111 to +113
class CTASMethod(enum.Enum):
TABLE = enum.auto()
VIEW = enum.auto()

This comment was marked as resolved.

@betodealmeida betodealmeida force-pushed the sqlglot-ctas-cvas branch 2 times, most recently from a133585 to 4af8cab Compare May 19, 2025 23:36
Base automatically changed from sqlglot-rls to master May 28, 2025 13:10
@betodealmeida betodealmeida merged commit ea5a609 into master May 28, 2025
52 of 53 checks passed
@betodealmeida betodealmeida deleted the sqlglot-ctas-cvas branch May 28, 2025 13:46
LevisNgigi pushed a commit to LevisNgigi/superset that referenced this pull request Jun 18, 2025
@github-actions github-actions bot added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 6.0.0 First shipped in 6.0.0 labels Dec 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels preset-io size/L 🚢 6.0.0 First shipped in 6.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants