Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 13, 2024

Updates the requirements on sqlglot to permit the latest version.

Changelog

Sourced from sqlglot's changelog.

[v22.4.0] - 2024-03-12

💥 BREAKING CHANGES

✨ New Features

🐛 Bug Fixes

♻️ Refactors

[v22.3.1] - 2024-03-09

✨ New Features

🐛 Bug Fixes

[v22.3.0] - 2024-03-08

✨ New Features

... (truncated)

Commits
  • 94b5a2f fix(athena): Fix CREATE TABLE properties, STRING data type (#3129)
  • 0ea849b feat: Adding NAME data type in Postgres/Redshift (#3128)
  • 9b25a8e feat: Adding BACKUP property (#3127)
  • 0ce9ef1 Refactor: improve parsing of storage provider setting in index params
  • 09708f5 feat: Adding EXCLUDE constraint support (#3116)
  • b1c8cac Fix!: traverse union scopes iteratively (#3112)
  • 80d484c Feat(postgres): generate StrToDate (#3124)
  • 12d72a6 Fix: make the lineage sources dict type covariant (#3122)
  • c333017 Fix: correctly generate ArrayJoin in various dialects (#3120)
  • 14c1dad TO_NUMBER transpilation cleanup
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [sqlglot](https://github.com/tobymao/sqlglot) to permit the latest version.
- [Changelog](https://github.com/tobymao/sqlglot/blob/main/CHANGELOG.md)
- [Commits](tobymao/sqlglot@v22.3.1...v22.4.0)

---
updated-dependencies:
- dependency-name: sqlglot
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Mar 13, 2024
@codecov
Copy link

codecov bot commented Mar 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.20%. Comparing base (6224a9d) to head (b46e316).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #51   +/-   ##
=======================================
  Coverage   83.20%   83.20%           
=======================================
  Files           7        7           
  Lines         530      530           
  Branches      105      105           
=======================================
  Hits          441      441           
  Misses         54       54           
  Partials       35       35           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@nfx nfx merged commit c12e832 into main Mar 13, 2024
@nfx nfx deleted the dependabot/pip/sqlglot-gte-22.3.1-and-lt-22.5.0 branch March 13, 2024 09:23
nfx added a commit that referenced this pull request Mar 13, 2024
* Fixed row converter to properly handle nullable values ([#53](#53)). In this release, the row converter in the `databricks.labs.lsql.core` module has been updated to handle nullable values correctly. A new method `StatementExecutionExt` has been added, which manages the handling of nullable values during SQL statement execution. The `Row` class has also been modified to include nullable values, improving the robustness and flexibility of SQL execution in dealing with various data types, including null values. These enhancements increase the overall reliability of the system, making it more production-ready.
* Improved integration test coverage ([#52](#52)). In this release, the project's integration test coverage has been significantly improved through several changes. A new function, `make_random()`, has been added to the `conftest.py` file to generate a random string of fixed length, aiding in the creation of more meaningful and readable random strings for integration tests. A new file, `test_deployment.py`, has been introduced, containing a test function for deploying a database schema and verifying successful data retrieval via a view. The `test_integration.py` file has been renamed to `test_core.py`, with updates to the `test_fetch_one` function to test the `fetch_one` method using a SQL query with an aliased value. Additionally, a new `Foo` dataclass has been added to the `tests/integration/views/__init__.py` file, supporting integration test coverage. Lastly, a new SQL query has been added to the integration test suite, located in the `some.sql` file, which retrieves data from a table named `foo` in the `inventory` schema. These changes aim to enhance the overall stability, reliability, and coverage of the project's integration tests. Note: The changes to the `.gitignore` file and the improvements to the `StatementExecutionBackend` class in the `backends.py` file are not included in this summary, as they were described in the opening statement.
* Rely on `hatch` being present on the build machine ([#54](#54)). In this release, we have made significant changes to how we manage our build process and toolchain configuration. We have removed the need to manually install `hatch` version 1.7.0 in the build machine, and instead, rely on its presence, adding it to the list of required tools in the toolchain configuration. The command to create a virtual environment using `hatch` has also been added, and the `pre_setup` section no longer includes installing `hatch`, assuming its availability. We have also updated the `hatch` package version from 1.7.0 to 1.9.4, which may include bug fixes, performance improvements, or new features. This change may impact the behavior of any existing functionality that relies on `hatch`. The `pyproject.toml` file has been modified to update the `fmt` and `verify` sections, with `ruff check . --fix` replacing `ruff . --fix` and the removal of `black --check .` and `isort . --check-only`. A new configuration for `isort` has also been added to specify the `databricks.labs.blueprint` package as a known first-party package, enabling more precise management of imports related to that package. These changes simplify the build process and ensure that the project is using a more recent version of the `hatch` package for packaging and distributing Python projects.
* Updated sqlglot requirement from ~=22.3.1 to >=22.3.1,<22.5.0 ([#51](#51)). In this release, we have updated the version constraint for the `sqlglot` package in our project's `pyproject.toml` file. Previously, we had set the constraint to `~=22.3.1`, allowing for any version with the same major and minor numbers but different patch numbers. With this update, we have changed the constraint to `>=22.3.1,<22.5.0`. This change enables our project to utilize bug fixes and improvements made in the latest patch versions of `sqlglot`, while still preventing it from inadvertently using any breaking changes introduced in version 22.5.0 or later versions. This modification allows us to take advantage of the latest features and improvements in `sqlglot` while maintaining compatibility and stability in our project.

Dependency updates:

 * Updated sqlglot requirement from ~=22.3.1 to >=22.3.1,<22.5.0 ([#51](#51)).
@nfx nfx mentioned this pull request Mar 13, 2024
nfx added a commit that referenced this pull request Mar 13, 2024
* Fixed row converter to properly handle nullable values
([#53](#53)). In this
release, the row converter in the `databricks.labs.lsql.core` module has
been updated to handle nullable values correctly. A new method
`StatementExecutionExt` has been added, which manages the handling of
nullable values during SQL statement execution. The `Row` class has also
been modified to include nullable values, improving the robustness and
flexibility of SQL execution in dealing with various data types,
including null values. These enhancements increase the overall
reliability of the system, making it more production-ready.
* Improved integration test coverage
([#52](#52)). In this
release, the project's integration test coverage has been significantly
improved through several changes. A new function, `make_random()`, has
been added to the `conftest.py` file to generate a random string of
fixed length, aiding in the creation of more meaningful and readable
random strings for integration tests. A new file, `test_deployment.py`,
has been introduced, containing a test function for deploying a database
schema and verifying successful data retrieval via a view. The
`test_integration.py` file has been renamed to `test_core.py`, with
updates to the `test_fetch_one` function to test the `fetch_one` method
using a SQL query with an aliased value. Additionally, a new `Foo`
dataclass has been added to the `tests/integration/views/__init__.py`
file, supporting integration test coverage. Lastly, a new SQL query has
been added to the integration test suite, located in the `some.sql`
file, which retrieves data from a table named `foo` in the `inventory`
schema. These changes aim to enhance the overall stability, reliability,
and coverage of the project's integration tests. Note: The changes to
the `.gitignore` file and the improvements to the
`StatementExecutionBackend` class in the `backends.py` file are not
included in this summary, as they were described in the opening
statement.
* Rely on `hatch` being present on the build machine
([#54](#54)). In this
release, we have made significant changes to how we manage our build
process and toolchain configuration. We have removed the need to
manually install `hatch` version 1.7.0 in the build machine, and
instead, rely on its presence, adding it to the list of required tools
in the toolchain configuration. The command to create a virtual
environment using `hatch` has also been added, and the `pre_setup`
section no longer includes installing `hatch`, assuming its
availability. We have also updated the `hatch` package version from
1.7.0 to 1.9.4, which may include bug fixes, performance improvements,
or new features. This change may impact the behavior of any existing
functionality that relies on `hatch`. The `pyproject.toml` file has been
modified to update the `fmt` and `verify` sections, with `ruff check .
--fix` replacing `ruff . --fix` and the removal of `black --check .` and
`isort . --check-only`. A new configuration for `isort` has also been
added to specify the `databricks.labs.blueprint` package as a known
first-party package, enabling more precise management of imports related
to that package. These changes simplify the build process and ensure
that the project is using a more recent version of the `hatch` package
for packaging and distributing Python projects.
* Updated sqlglot requirement from ~=22.3.1 to >=22.3.1,<22.5.0
([#51](#51)). In this
release, we have updated the version constraint for the `sqlglot`
package in our project's `pyproject.toml` file. Previously, we had set
the constraint to `~=22.3.1`, allowing for any version with the same
major and minor numbers but different patch numbers. With this update,
we have changed the constraint to `>=22.3.1,<22.5.0`. This change
enables our project to utilize bug fixes and improvements made in the
latest patch versions of `sqlglot`, while still preventing it from
inadvertently using any breaking changes introduced in version 22.5.0 or
later versions. This modification allows us to take advantage of the
latest features and improvements in `sqlglot` while maintaining
compatibility and stability in our project.

Dependency updates:

* Updated sqlglot requirement from ~=22.3.1 to >=22.3.1,<22.5.0
([#51](#51)).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants