-
Notifications
You must be signed in to change notification settings - Fork 16.1k
fix: Enable DuckDB examples loading in showtime ephemeral environments #35294
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
Conversation
…ronments This adds the missing SUPERSET__SQLALCHEMY_EXAMPLES_URI environment variable to the ECS task definition used by showtime ephemeral environments. Without this configuration, showtime environments were unable to load examples because the container didn't know where to find the DuckDB examples file that was downloaded during Docker build (via LOAD_EXAMPLES_DUCKDB=true). The URI matches what's used in docker-compose.yml and docker-compose-light.yml, with read-only access mode for safety in ephemeral environments. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
This fixes an issue where the LOAD_EXAMPLES_DUCKDB build argument was being ignored during multi-stage Docker builds, causing showtime ephemeral environments to fail loading examples. Problem: The ARG was declared inside the python-common stage, making it unavailable when passed via --build-arg to the showtime target. Solution: Move the ARG declaration to global scope (before any FROM) and re-declare it in the python-common stage where it's used. This follows Docker's multi-stage build ARG scope rules. This fix ensures that when showtime builds with: docker buildx build --build-arg LOAD_EXAMPLES_DUCKDB=true --target showtime The DuckDB examples file will actually be downloaded during the build. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…ime environments" This reverts commit 55e3da4.
|
🎪 Showtime deployed environment on GHA for ecfedd4 • Environment: http://52.38.229.242:8080 (admin/admin) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
Examples are showing up in the ephemeral now. 🙌 |
Summary
This PR fixes two critical issues preventing DuckDB examples from loading in showtime ephemeral environments:
LOAD_EXAMPLES_DUCKDBbuild argument was being ignoredunhashable type: '_duckdb.typing.DuckDBPyType'errorsProblems Fixed
1. Docker Build Argument Scope
Issue: The
LOAD_EXAMPLES_DUCKDBARG was declared inside thepython-commonstage, making it unavailable when passed via--build-argto theshowtimetarget in multi-stage builds.Fix: Move ARG declaration to global scope and re-declare in the stage where it's used.
2. DuckDB Version Compatibility
Issue: Current DuckDB version
1.3.2has type system changes incompatible with duckdb-engine, causing connection failures.Fix: Constrain DuckDB core to
>=0.10.2,<0.11while keeping duckdb-engine at current>=0.17.0. Testing confirmed the newer driver works fine with DuckDB 0.10.x.Version Constraints
Rationale:
Testing
✅ Local testing confirms both fixes work:
Before/After
Before:
LOAD_EXAMPLES_DUCKDB=true→ No examples file downloadedAfter:
Impact
This enables showtime ephemeral environments to successfully load and display examples, making them much more useful for testing and demonstration purposes.
🤖 Generated with Claude Code