-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Description
When using Apache Superset connected via Arrow Flight SQL, previewing a table triggers a query with a schema-qualified table name:
SELECT * FROM "default".ecommerceThe SQL parser cannot parse this syntax. Elasticsearch does not have a concept of schemas, but external tools (Superset, DBeaver, etc.) commonly prefix table names with a quoted schema (typically "default" or "information_schema").
Expected Behavior
The parser should accept schema-qualified identifiers in the form "schema".table (quoted schema only). For Elasticsearch, the schema component should be ignored and only the table name should be used.
Important: Only quoted schema prefixes are recognized. Unquoted dots are preserved as part of the Elasticsearch index name (e.g. logs-2025.03 remains logs-2025.03).
Reproduction
- Start the demo with
docker compose --profile superset-flight up - Open Superset at
http://localhost:8088 - Navigate to SQL Lab or preview a table in the
defaultschema - Superset sends:
SELECT * FROM "default".ecommerce - The Flight SQL server returns a parse error
Suggested Approach
- Add a
quotedSchemaPrefixparser combinator inFromParser.scalathat optionally matches a double-quoted string followed by.before the table name - The quoted schema is discarded and only the table name is passed to the
TableAST node
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request