mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
- Add missing props to DatasourceControlProps interface (user, hovered, type, label, etc.) - Fix ErrorAlert usage with proper message prop - Add datasource prop to ViewQuery usage - Add types to DndColumnSelectPopoverTitle props - Add full TypeScript interfaces and class member types to AdhocFilter class - Add full TypeScript interfaces and class member types to AdhocMetric class - Update datasourceIconLookup with proper Record<string, ReactNode> type 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
SQL Lab Parquet Export Extension
This Apache Superset extension enables users to export SQL Lab query results directly to Parquet format.
Features
- Export query results to Parquet with a single click
- Uses Snappy compression for optimal file size and performance
- Automatic filename generation with timestamp
- Handles various data types including dates and null values
Installation
Build the Extension
cd extensions/sqllab_parquet/frontend
npm install
npm run build
Configure Superset
Add the following to your superset_config.py:
# Enable extensions feature
FEATURE_FLAGS = {"ENABLE_EXTENSIONS": True}
# For development (load from filesystem):
LOCAL_EXTENSIONS = ["/path/to/extensions/sqllab_parquet"]
# For production (load from bundled .supx files):
# EXTENSIONS_PATH = "/path/to/extensions/"
Restart Superset
After configuration, restart your Superset instance for the extension to load.
Usage
- Open SQL Lab and write a query
- Run the query to see results
- Click the three-dot menu (secondary actions) in the editor toolbar
- Select "Export to Parquet"
- The Parquet file will download automatically
Requirements
- Apache Superset with Extensions support enabled
- Python packages:
pyarrow>=10.0.0,pandas>=1.0.0
License
Apache License 2.0