Skip to content

Commit

Permalink
Release v0.2.5 (#73)
Browse files Browse the repository at this point in the history
* Fixed PyPI badge
([#72](#72)). In this
release, we have implemented a fix to the PyPI badge in the README file
of our open-source library. The PyPI badge displays the version of the
package and serves as a quick reference for users. This fix ensures the
accuracy and proper functioning of the badge, without involving any
changes to the functionality or methods within the project. Software
engineers can be assured that this update is limited to the README file,
specifically the PyPI badge, and will not affect the overall
functionality of the library.
* Fixed `no-cheat` check
([#71](#71)). In this
release, we have made improvements to the `no-cheat` verification
process for new code. Previously, the check for disabling the linter was
prone to false positives when the string '# pylint: disable' appeared
for reasons other than disabling the linter. The updated code now
includes an additional filter to exclude the string `CHEAT` from the
search, and the number of characters in the output is counted using the
`wc -c` command. If the count is not zero, the script will terminate
with an error message. This change enhances the accuracy of the
`no-cheat` check, ensuring that the linter is being used correctly and
that all new code meets our quality standards.
* Removed upper bound on `sqlglot` dependency
([#70](#70)). In this
update, we have removed the upper bound on the `sqlglot` dependency
version in the project's `pyproject.toml` file. Previously, the version
constraint required `sqlglot` to be at least 22.3.1 but less than
22.5.0. With this modification, there will be no upper limit, enabling
the project to utilize any version greater than or equal to 22.3.1. This
change provides the project with the flexibility to take advantage of
future bug fixes, performance improvements, and new features available
in newer `sqlglot` package versions. Developers should thoroughly test
the updated package version to ensure compatibility with the existing
codebase.
  • Loading branch information
nfx authored Mar 26, 2024
1 parent a54c330 commit 8921e0f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Version changelog

## 0.2.5

* Fixed PyPI badge ([#72](https://github.com/databrickslabs/lsql/issues/72)). In this release, we have implemented a fix to the PyPI badge in the README file of our open-source library. The PyPI badge displays the version of the package and serves as a quick reference for users. This fix ensures the accuracy and proper functioning of the badge, without involving any changes to the functionality or methods within the project. Software engineers can be assured that this update is limited to the README file, specifically the PyPI badge, and will not affect the overall functionality of the library.
* Fixed `no-cheat` check ([#71](https://github.com/databrickslabs/lsql/issues/71)). In this release, we have made improvements to the `no-cheat` verification process for new code. Previously, the check for disabling the linter was prone to false positives when the string '# pylint: disable' appeared for reasons other than disabling the linter. The updated code now includes an additional filter to exclude the string `CHEAT` from the search, and the number of characters in the output is counted using the `wc -c` command. If the count is not zero, the script will terminate with an error message. This change enhances the accuracy of the `no-cheat` check, ensuring that the linter is being used correctly and that all new code meets our quality standards.
* Removed upper bound on `sqlglot` dependency ([#70](https://github.com/databrickslabs/lsql/issues/70)). In this update, we have removed the upper bound on the `sqlglot` dependency version in the project's `pyproject.toml` file. Previously, the version constraint required `sqlglot` to be at least 22.3.1 but less than 22.5.0. With this modification, there will be no upper limit, enabling the project to utilize any version greater than or equal to 22.3.1. This change provides the project with the flexibility to take advantage of future bug fixes, performance improvements, and new features available in newer `sqlglot` package versions. Developers should thoroughly test the updated package version to ensure compatibility with the existing codebase.


## 0.2.4

* Fixed `Builder` object is not callable error ([#67](https://github.com/databrickslabs/lsql/issues/67)). In this release, we have made an enhancement to the `Backends` class in the `databricks/labs/lsql/backends.py` file. The `DatabricksSession.builder()` method call in the `__init__` method has been changed to `DatabricksSession.builder`. This update uses the `builder` attribute to create a new instance of `DatabricksSession` without calling it like a function. The `sdk_config` method is then used to configure the instance with the required settings. Finally, the `getOrCreate` method is utilized to obtain a `SparkSession` object, which is then passed as a parameter to the parent class constructor. This modification simplifies the code and eliminates the error caused by treating the `builder` attribute as a callable object. Software engineers may benefit from this change by having a more streamlined and error-free codebase when working with the open-source library.
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.2.4"
__version__ = "0.2.5"

0 comments on commit 8921e0f

Please sign in to comment.