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 Microsoft SQL Server as the warehouse: mssql platform URNs, Database/Schema containers keyed like the SQL Server source, SQL Server column types, Unity/Delta/ Spark-only properties removed, and all 312 queries rewritten to T-SQL (compiled with SHOWPLAN on a live SQL Server 2022). T-SQL has no JOIN ... USING, LIMIT, GROUP BY ordinals or aggregate percentiles, so queries were rebuilt structurally; integer AVGs cast to FLOAT to keep Databricks semantics.
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 Microsoft SQL Server as the warehouse platform.Self-contained (
01-definitions→05-context+index.json), stacked on #200 like #209, #237 and #238. It can be loaded on its own or next to the other showcase packs.How it was derived
Generated from
showcase-ecommerce-databrickswith the same platform transform as the Trino and MySQL packs:dataPlatform:mssqlorder_entry_db.<schema>.<table>(database.schema.table, as the SQL Server source names them)Database/Schema, GUIDs from DataHub'sDatabaseKey/SchemaKey, so they match what the SQL Server source emitsstring→nvarchar(255),double→float,timestamp→datetime2;int,bigint,dateunchangedexternalUrl,storage_location,table_id,table_type,delta.*,spark.*,view.*propertiesSQL dialect
T-SQL is further from Databricks SQL than the earlier targets. It has no
JOIN … USING(228 uses), noLIMIT(66), noGROUP BYordinals, noCURRENT_DATE,ANY_VALUEor||, andTIMESTAMPis a row-version type. So the queries were rebuilt structurally with sqlglot instead of edited textually:USINGjoins becomeONjoins with qualified columns. Unqualified join columns resolve to the left table, as in Databricks.LIMIT n→TOP n,GROUP BY 1, 2→ the grouped expressions,DATE_TRUNC→DATETRUNC(SQL Server 2022),CAST(… AS TIMESTAMP)→DATETIME2,||→+,MONTHS_BETWEEN→DATEDIFF(month, …), day names and numbers viaFORMAT/DATEPART.AVGover integers returns an integer in SQL Server (Databricks returns a double). IntegerAVGinputs are cast toFLOATin 15 queries, so averages such as "average days to dispatch" are not truncated.MEDIAN/PERCENTILE_CONTqueries (SQL Server'sPERCENTILE_CONTis window-only, so percentiles are computed withOVER (PARTITION BY …)and collapsed withMAX), 2 that aggregate over a subquery (not allowed in T-SQL), plusQUALIFY, a distinctSTRING_AGG, and one noise query that relied on Databricks reading"condition"as a string.Also fixed, as in #237 and #238:
snowflake_freshness_checkquery family is renamedmssql_freshness_check.platformproperty.Validation
SET SHOWPLAN_XML ONon a live SQL Server 2022, with tables built from the pack's ownschemaMetadata. That binds every table and column without running the query. 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). The percentile idiom was checked numerically (values 1–10: median 5.5, p90 9.1).datahub datapack load --url file://…/index.jsoninto a fresh local DataHub: zero failures. Read-back shows 14 datasets, 4 containers and 312 queries onmssql. On a brand-new instance the first load attempt can reach02-sharedbefore the structured-property definitions from01-definitionsare registered; loading again succeeds.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. If two platform packs are loaded into one instance, the last one loaded owns them.order_statuscolumn with'Cancelled'/'On Hold'. It is left as in the other packs.🤖 Generated with Claude Code