We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Catalog Error: Scalar Function with name date does not exist!
when using function date() in a sql script results in Catalog Error: Scalar Function with name date does not exist! in version 0.9.8.
it used to work successfully in version 0.9.6.
here's code used to replicate the issue. Works in 0.9.6. Fails in 0.9.8
import fakesnow import snowflake.connector conn = snowflake.connector.connect() conn.cursor().execute('CREATE DATABASE TEST') conn.cursor().execute('USE DATABASE TEST') conn.cursor().execute('CREATE SCHEMA TEST') conn.cursor().execute('USE SCHEMA TEST') print(conn.cursor().execute("with SOURCE_TABLE AS (SELECT '2024-01-01' AS start_date) SELECT 'Hello fake world!', date(a.start_date) from SOURCE_TABLE AS a").fetchone())
The text was updated successfully, but these errors were encountered:
Thanks for raising this, looks like this was introduced when moving from sqlglot 21.2 to 23.3 👀
Sorry, something went wrong.
Raised here tobymao/sqlglot#3338
d22facb
chore(main): release 0.9.9 (#84)
0db5a26
🤖 I have created a release *beep* *boop* --- ## [0.9.9](v0.9.8...v0.9.9) (2024-05-01) ### Bug Fixes * CREATE TABLE AS with aliases and combined fields ([dbffa01](dbffa01)), closes [#82](#82) * patching in fakesnow.ipynb ([388c0ef](388c0ef)) ### Chores * bump sqlglot 23.12.2 ([d22facb](d22facb)), closes [#83](#83) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: potatobot-prime[bot] <132267321+potatobot-prime[bot]@users.noreply.github.com>
Successfully merging a pull request may close this issue.
when using function date() in a sql script results in
Catalog Error: Scalar Function with name date does not exist!
in version 0.9.8.it used to work successfully in version 0.9.6.
here's code used to replicate the issue. Works in 0.9.6. Fails in 0.9.8
The text was updated successfully, but these errors were encountered: