Skip to content

Commit

Permalink
Release v0.10.0 (#274)
Browse files Browse the repository at this point in the history
* Added Functionality to export any dashboards-as-code into CSV
([#269](#269)). The
`DashboardMetadata` class now includes a new method,
`export_to_zipped_csv`, which enables exporting any dashboard as CSV
files in a ZIP archive. This method accepts `sql_backend` and
`export_path` as parameters and exports dashboard queries to CSV files
in the specified ZIP archive by iterating through tiles and fetching
dashboard queries if the tile is a query. To ensure the proper
functioning of this feature, unit tests and manual testing have been
conducted. A new test, `test_dashboards_export_to_zipped_csv`, has been
added to verify the correct export of dashboard data to a CSV file.
* Added support for generic types in `SqlBackend`
([#272](#272)). In this
release, we've added support for using rich dataclasses, including those
with optional and generic types, in the `SqlBackend` of the
`StatementExecutionBackend` class. The new functionality is demonstrated
in the `test_supports_complex_types` unit test, which creates a `Nested`
dataclass containing various complex data types, such as nested
dataclasses, `datetime` objects, `dict`, `list`, and optional fields.
This enhancement is achieved by updating the `save_table` method to
handle the conversion of complex dataclasses to SQL statements. To
facilitate type inference, we've introduced a new `StructInference`
class that converts Python dataclasses and built-in types to their
corresponding SQL Data Definition Language (DDL) representations. This
addition simplifies data definition and manipulation operations while
maintaining type safety and compatibility with various SQL data types.
  • Loading branch information
nfx authored Sep 11, 2024
1 parent fe7bf4d commit 82826ab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Version changelog

## 0.10.0

* Added Functionality to export any dashboards-as-code into CSV ([#269](https://github.com/databrickslabs/lsql/issues/269)). The `DashboardMetadata` class now includes a new method, `export_to_zipped_csv`, which enables exporting any dashboard as CSV files in a ZIP archive. This method accepts `sql_backend` and `export_path` as parameters and exports dashboard queries to CSV files in the specified ZIP archive by iterating through tiles and fetching dashboard queries if the tile is a query. To ensure the proper functioning of this feature, unit tests and manual testing have been conducted. A new test, `test_dashboards_export_to_zipped_csv`, has been added to verify the correct export of dashboard data to a CSV file.
* Added support for generic types in `SqlBackend` ([#272](https://github.com/databrickslabs/lsql/issues/272)). In this release, we've added support for using rich dataclasses, including those with optional and generic types, in the `SqlBackend` of the `StatementExecutionBackend` class. The new functionality is demonstrated in the `test_supports_complex_types` unit test, which creates a `Nested` dataclass containing various complex data types, such as nested dataclasses, `datetime` objects, `dict`, `list`, and optional fields. This enhancement is achieved by updating the `save_table` method to handle the conversion of complex dataclasses to SQL statements. To facilitate type inference, we've introduced a new `StructInference` class that converts Python dataclasses and built-in types to their corresponding SQL Data Definition Language (DDL) representations. This addition simplifies data definition and manipulation operations while maintaining type safety and compatibility with various SQL data types.


## 0.9.3

* Added documentation for exclude flag ([#265](https://github.com/databrickslabs/lsql/issues/265)). A new `exclude` flag has been added to the configuration file for our lab tool, allowing users to specify a path to exclude from formatting during lab execution. This release also includes corrections to grammatical errors in the descriptions of existing flags related to catalog and database settings, such as updating `seperated` to "separate". Additionally, the flag descriptions for `publish` and `open-browser` have been updated for clarification: `publish` now clearly controls whether the dashboard is published after creation, while `open-browser` controls whether the dashboard is opened in a web browser. These changes are aimed at improving user experience and ease of use for our lab tool.
Expand Down
2 changes: 1 addition & 1 deletion src/databricks/labs/lsql/__about__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.9.3"
__version__ = "0.10.0"

0 comments on commit 82826ab

Please sign in to comment.