Opteryx is a hosted SQL workspace on an open-source query engine. It queries files in S3 and GCS, Iceberg tables and PostgreSQL databases where they live.
Installation
Required packages: opteryx-sqlalchemy
Drivers
opteryx-sqlalchemyRecommended
PyPI Package:
opteryx-sqlalchemyopteryx://{client_id}:{client_secret}@opteryx.app:443/?ssl=trueSupported Features
JOINsSubqueriesDynamic SchemaCatalog SupportDynamic CatalogSSH TunnelingQuery CancellationFile UploadUser ImpersonationCost EstimationSQL Validation
Feature Score: 61/201
Time Grains
Common Time Grains:
SECONDMINUTEHOURDAYWEEKMONTHQUARTERYEAR
Extended Time Grains:
FIVE_SECONDSTHIRTY_SECONDSFIVE_MINUTESTEN_MINUTESFIFTEEN_MINUTESTHIRTY_MINUTESHALF_HOURSIX_HOURSWEEK_STARTING_SUNDAYWEEK_STARTING_MONDAYWEEK_ENDING_SATURDAYWEEK_ENDING_SUNDAYQUARTER_YEAR
Extended Aggregate Functions
The base aggregates (SUM, COUNT, AVG, MIN, MAX, COUNT DISTINCT) are supported everywhere; these are opt-in per engine.
MEDIANSTDDEV_SAMPVAR_SAMP
Troubleshooting
Common error messages you may encounter when connecting to or querying Opteryx, along with their causes and solutions.
Notes
Authenticates with OAuth client credentials. Tables are listed per collection: the schema is `workspace.collection`, and SQL refers to datasets as `workspace.collection.dataset`.
Resources