Skip to content

Releases: dbt-labs/semantic-layer-sdk-python

0.7.0

15 Nov 13:47
f5e4eb2
Compare
Choose a tag to compare

v0.7.0 - 2024-11-14

Features

  • Support for adhoc queries with only groupby. This is equivalent to listing dimension values.

Fixes

  • Fixes issue with orderBy and where when going via GraphQL

Chore

  • Fix release PR action to use correct title for PR

0.6.0

21 Oct 12:45
c6c0866
Compare
Choose a tag to compare

v0.6.0 - 2024-10-21

Breaking Changes

  • order_by clause of queries using saved queries no longer support string inputs and require explicit OrderByMetric or OrderByGroupBy

Deprecations

  • Deprecate TimeGranularity enum and all other fields that used it

Features

  • Specifying order by with OrderByMetric and OrderByGroupBy
  • Add support for custom time granularity

Fixes

  • Order by for compile_sql now works as expected

Under the Hood

  • Improved internal representation of query parameters and added better validation
  • Improve error display
  • Add new mechanisms to deprecate fields and classes

0.5.0

23 Sep 12:57
59e91b6
Compare
Choose a tag to compare

v0.5.0 - 2024-09-23

Features

  • compile_sql method for getting the compiled SQL of a query
  • Allow saved queries in query and compile_sql

Fixes

  • Fixed wrong annotation for saved_queries in sync client.

Under the Hood

  • Better error messages
  • Client-side validation of query parameters

0.4.0

20 Aug 14:16
34ff84c
Compare
Choose a tag to compare

v0.4.0 - 2024-08-20

Features

  • Add Export list to SavedQuery
  • Add SavedQueryQueryParam list to SavedQuery

Dependencies

  • Lower minimum PyArrow version to 12.0.0

Chore

  • Removed some files that were added accidentally

0.3.1

09 Aug 16:05
7630cbf
Compare
Choose a tag to compare

v0.3.1 - 2024-08-09

Dependencies

  • Relaxed dependency constraints

0.3.0

09 Jul 12:49
5e52e1c
Compare
Choose a tag to compare

v0.3.0 - 2024-07-09

Features

  • Added saved_query fetching via GraphQL
  • Added entity fetching via GraphQL
  • Added more fields to dimension
  • Added more fields to metric
  • Full support for all query parameters
  • Add dimension values query

Under the Hood

  • Changed how field aliases to make it easier to define new models
  • Improved how GraphQL gets generated under the hood

Dependencies

  • Fix the way we specify dependencies to avoid conflicts.

Chore

  • Add stage_fix to lefthook hooks
  • Fix github actions for release PR

Test

  • Separate tests into unit and integration tests
  • Fix warnings and failing integration test

0.2.1

21 Jun 09:41
a941317
Compare
Choose a tag to compare

v0.2.1 - 2024-06-21

Under the Hood

  • Change how clients create and poll for query results

Chore

  • Fix create release CI

0.2.0

19 Jun 12:38
30bbbf7
Compare
Choose a tag to compare

v0.2.0 - 2024-06-19

Features

  • Add query() to sync client

Fixes

  • Fix import error on 3.9
  • Fix backoff not using exp_factor
  • Dimensions query had wrong value in protocol

Under the Hood

  • Add has_session to underlying API clients
  • Add user-agent header for telemetry

Chore

  • Known first party was wrong for Ruff

Test

  • Add integration tests with a real server

0.1.0

17 Jun 14:55
1b078f4
Compare
Choose a tag to compare

This is the first version of the Semantic Layer SDK for Python!

It includes:

  • GraphQL requests for metadata related to metrics, dimensions and entities
  • sync executor backed by requests
  • async executor backed by aiohttp

Beware this package is still heavily under construction and is not yet stable!