Skip to content

Commit

Permalink
chore(deps): update dependency sqlglot to >=24.0.0,<25.18 (#156)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency sqlglot to >=24.0.0,<25.18

* ignore ltrim/rtrim

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: eakmanrq <[email protected]>
  • Loading branch information
renovate[bot] and eakmanrq authored Aug 27, 2024
1 parent 6773df3 commit dadd482
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
python_requires=">=3.8",
install_requires=[
"prettytable<3.11.1",
"sqlglot>=24.0.0,<25.17",
"sqlglot>=24.0.0,<25.18",
"typing_extensions>=4.8,<5",
],
extras_require={
Expand Down
3 changes: 2 additions & 1 deletion tests/unit/standalone/test_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
def test_invoke_anonymous(name, func):
# array_size - converts to `size` but `array_size` and `size` behave differently
# to_char - convert to a cast that ignores the format provided
ignore_funcs = {"array_size", "to_char"}
# ltrim/rtrim - don't seem to convert correctly on some engines
ignore_funcs = {"array_size", "to_char", "ltrim", "rtrim"}
if "invoke_anonymous_function" in inspect.getsource(func) and name not in ignore_funcs:
func = parse_one(f"{name}()", read="spark", error_level=ErrorLevel.IGNORE)
assert isinstance(func, exp.Anonymous)
Expand Down

0 comments on commit dadd482

Please sign in to comment.