Build a semantic layer
Three pathways to the ThoughtSpot semantic layer
Bring semantic definitions to ThoughtSpot, with the same natural-language experience, optimised for your needs.
Pathway 1: Define it in ThoughtSpot
SpotterModel’s full agentic data modeling experience is available to create and manage ThoughtSpot objects: tables, joins, formulas, and agent context. This pathway is suitable if you don’t have a semantic layer, or if your team can’t get permissions to create semantic objects in the underlying platform.
Pathway 2: Object Conversion Sync
This path refers to ThoughtSpot object models created from the underlying semantic platform. The resulting SQL is executed on the underlying tables, rather than the semantic objects. This is the same SQL that would be generated when the semantics are created directly in ThoughtSpot (Pathway 1).
As platforms all have nuances, therefore there will be semantic definitions that may not sync. The overarching principle is to align with the Ossie standard for semantic definition. Importantly, the design is to skip definitions with an ambiguous result. That is, if the translation is not exact then this is skipped. Analysts can augment the semantic model in ThoughtSpot. Today ThoughtSpot supports the ability to define semantic integrations for: Snowflake, Databricks, and dbt. Note that the semantic integration workflow in ThoughtSpot is only supported for Snowflake and Databricks connections-- to integrate with dbt, you need to create a sync.
Pathway 3: Query external semantic layer
ThoughtSpot syncs only the columns and their metadata, such as descriptions and context where applicable. The generated SQL is Semantic SQL. The underlying platform is responsible for the generation of the SQL that runs against the tables. The platform is responsible for ensuring that the metric calculations, joins and results are correct.
Semantic Sync versus querying external semantic layer
Each has trade-offs, and they depend on your use case and also underlying platform capabilities. That is, ThoughtSpot Data Cache requires the full understanding of metric definitions and unaggregated data. Therefore this would require a Semantic Sync.
A custom calendar requires the ability to join to the semantic layer at query time. Therefore the decision of Semantic Sync versus Querying external semantic layer is platform dependent.
JSON or variant column definitions may impact the ability to leverage Semantic sync. Therefore this use case may require the ability to query external semantic layers.
ThoughtSpot is defined with TML. The objective is to support the ability to select a pathway to meet initial needs. Importantly, provide a friction-free method to the future as these needs and capabilities change.