Repository navigation
Conversation
Add a new `showcase-ecommerce-databricks` datapack that mirrors the existing Snowflake showcase-ecommerce datapack with Databricks as the warehouse platform. - 14 Databricks datasets (order_entry_db.order_entry + analytics schemas) - Full governance parity: tags, glossary terms, ownership, domains, structured properties, editable descriptions, lineage, siblings, schema fields - 312 queries translated from Snowflake SQL to Databricks SQL dialect (CAST syntax, DATEADD/DATEDIFF units, LISTAGG -> ARRAY_JOIN, TO_CHAR -> DATE_FORMAT) - All cross-platform entities included (dbt, Looker, PowerBI, Tableau, Spark, etc.) with Snowflake order_entry_db references remapped to Databricks - Can be loaded independently or alongside the Snowflake datapack (no URN conflicts)
…r ingestion Add queryUsageFeatures aspect to all 312 query entities so semantic-anchor ingestion can discover and group them. Without this aspect, queries default to exec_count=0/users=[] and get filtered by the min_distinct_users threshold. - Cluster queries (160, 50 intents): exec_count 15-45, 3-4 users each Users derived from SQL author comments + intent-group sharing - Noise queries (152): exec_count 1-5, 1-2 users (correctly below threshold) - Uses the 8 author personas from Alex's query corpus README
Mirror of the Databricks showcase-ecommerce datapack with Trino as the warehouse: Trino platform URNs, Database/Schema containers keyed like the Trino source, Trino column types, Unity/Delta/Spark-only properties removed, and all 312 queries rewritten to Trino SQL (validated with EXPLAIN on a live Trino).
Base automatically changed from
feat/showcase-ecommerce-add-databricks
to
main
November 30, 2026 18:53
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a standalone datapack that mirrors the Databricks
showcase-ecommercedatapack with Trino as the warehouse platform.Self-contained (
01-definitions→05-context+index.json), stacked on #200 like #209. It can be loaded on its own or next to the other showcase packs.How it was derived
Generated from
showcase-ecommerce-databrickswith a platform transform, as in #209:dataPlatform:trinoorder_entry_db.<schema>.<table>(catalog.schema.table)Database(catalog) /Schema, GUIDs from DataHub'sDatabaseKey/SchemaKey, so they match what the Trino source emitsstring→varchar,int→integer,timestamp→timestamp(3);bigint,double,dateunchangedexternalUrl,storage_location,table_id,table_type,delta.*,spark.*,view.*propertiesDATEADD/DATEDIFF→date_add/date_diff('unit', …),MEDIAN/PERCENTILE_CONT … WITHIN GROUP→approx_percentile,ANY_VALUE→arbitrary,TO_DATE→CAST(… AS DATE),DATE_FORMATpatterns,ARRAY_JOIN(COLLECT_SET)→array_join(array_agg(DISTINCT)), date literals typed asTIMESTAMP '…', qualifiers dropped fromJOIN … USINGcolumns (Trino rejectso.order_idthere),QUALIFY→ subquery, column lists on recursive CTEsRewrites are textual, so author comments and layout are preserved. The
USING-column fix is scope-aware (sqlglot scopes), so only qualifiers naming a relation in thatUSINGjoin are dropped.Also fixed in this pack (inherited from the Databricks pack):
snowflake_freshness_checkquery family is nowtrino_freshness_check; its name, description and comment pointed at Snowflake.platformproperty. feat(showcase-ecommerce): add Redshift and BigQuery datapacks #209's transform set all 14 of them toredshift/bigquery.Validation
EXPLAIN (TYPE VALIDATE)on a live Trino, with tables built from the pack's ownschemaMetadata. 311/312 queries valid. The one failure isq-noise-abandoned_logon_to_order_funnel, a deliberate noise query on alogontable that is in no pack (same in the Databricks pack). sqlglot type annotation found no integer/integer divisions, where Trino and Databricks would give different results.datahub datapack load --url file://…/index.jsoninto a local DataHub: zero failures. Read-back shows 14 datasets, 4 containers and 312 queries ontrino.logontable is missing).Notes
urn:li:document:ecomm-*) and the shared layer (dbt, Looker, Power BI, Tableau, S3, Postgres) have the same URNs in every showcase pack, as in feat(showcase-ecommerce): add Redshift and BigQuery datapacks #209. If two platform packs are loaded into one instance, the last one loaded owns them.order_statuscolumn with'Cancelled'/'On Hold'. Trino rejects that comparison; it is left as in the other packs.🤖 Generated with Claude Code