-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
chore: Update Rockset—switching out rockset for rockset-sqlalchemy #24649
Conversation
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.
Codecov Report
@@ Coverage Diff @@
## master #24649 +/- ##
==========================================
- Coverage 69.08% 69.05% -0.03%
==========================================
Files 1906 1908 +2
Lines 74114 74173 +59
Branches 8155 8178 +23
==========================================
+ Hits 51200 51219 +19
- Misses 20795 20833 +38
- Partials 2119 2121 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 3 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
| [SAP Hana](/docs/databases/hana) | `pip install hdbcli sqlalchemy-hana or pip install apache-superset[hana]` | `hana://{username}:{password}@{host}:{port}` | | ||
| [StarRocks](/docs/databases/starrocks) | `pip install starrocks` | `starrocks://<User>:<Password>@<Host>:<Port>/<Catalog>.<Database>` | | ||
| [Snowflake](/docs/databases/snowflake) | `pip install snowflake-sqlalchemy` | `snowflake://{user}:{password}@{account}.{region}/{database}?role={role}&warehouse={warehouse}` | | ||
| SQLite | No additional library needed | `sqlite://` | | ||
| [SQL Server](/docs/databases/sql-server) | `pip install pymssql` | `mssql+pymssql://` | | ||
| [Teradata](/docs/databases/teradata) | `pip install teradatasqlalchemy` | `teradatasql://{user}:{password}@{host}` | | ||
| [TimescaleDB](/docs/databases/timescaledb) | `pip install psycopg2` | `postgresql://<UserName>:<DBPassword>@<Database Host>:<Port>/<Database Name>` | | ||
| [Trino](/docs/databases/trino) | `pip install trino` | `trino://{username}:{password}@{hostname}:{port}/{catalog}` | |
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.
Thanks for making this ABC.
@john-bodley or @betodealmeida is this going to be a breaking change? For people who use rockset, they'll need to change the driver that they use. Even though the driver itself is backward compatible, the import of the old driver will no longer work given the new requirements in Superset. |
@eschutho I'm not sure. The SQLAlchemy URI is unchanged as far as I'm can tell and thus it's no more breaking than other changes which bump an eligible version of a package. |
chore: bump rockset
docs: update Rockset usage (include virtual instance configuration)
SUMMARY
superset used a very old version of
rockset
(0.8.10). The latest version is 2.0.0. However, SQLAlchemy support no longer comes withrockset
and has been separated into its own package,rockset-sqlalchemy
. I have updatedsetup.py
to reference this new package. This change should be completely backward compatible.This new package comes with the ability to target specific virtual instances through the SQLAlchemy connection URI. I have updated the docs to show this new feature.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before:
After:
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION