Releases: dbt-labs/semantic-layer-sdk-python
Releases · dbt-labs/semantic-layer-sdk-python
0.8.0
0.7.0
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
andwhere
when going via GraphQL
Chore
- Fix release PR action to use correct title for PR
0.6.0
v0.6.0 - 2024-10-21
Breaking Changes
order_by
clause of queries using saved queries no longer support string inputs and require explicitOrderByMetric
orOrderByGroupBy
Deprecations
- Deprecate
TimeGranularity
enum and all other fields that used it
Features
- Specifying order by with
OrderByMetric
andOrderByGroupBy
- 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
v0.5.0 - 2024-09-23
Features
compile_sql
method for getting the compiled SQL of a query- Allow saved queries in
query
andcompile_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
v0.4.0 - 2024-08-20
Features
- Add
Export
list toSavedQuery
- Add
SavedQueryQueryParam
list toSavedQuery
Dependencies
- Lower minimum PyArrow version to
12.0.0
Chore
- Removed some files that were added accidentally
0.3.1
v0.3.1 - 2024-08-09
Dependencies
- Relaxed dependency constraints
0.3.0
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
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
v0.2.0 - 2024-06-19
Features
- Add
query()
to sync client
Fixes
- Fix import error on 3.9
- Fix
backoff
not usingexp_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
This is the first version of the Semantic Layer SDK for Python!
It includes:
- GraphQL requests for metadata related to
metrics
,dimensions
andentities
sync
executor backed byrequests
async
executor backed byaiohttp
Beware this package is still heavily under construction and is not yet stable!