Skip to content
New issue

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

Fix(Spark): Add DOUBLE, FLOAT cast functions #1530

Merged
merged 6 commits into from
May 4, 2023
Merged

Fix(Spark): Add DOUBLE, FLOAT cast functions #1530

merged 6 commits into from
May 4, 2023

Conversation

vegarsti
Copy link
Contributor

@vegarsti vegarsti commented May 3, 2023

Sorry, thought I'd added all these! Same as #1494 etc.

Sorry, thought I'd added all these.
@tobymao
Copy link
Owner

tobymao commented May 3, 2023

@vegarsti this needs to be redone / rebased

@vegarsti
Copy link
Contributor Author

vegarsti commented May 3, 2023

@vegarsti this needs to be redone / rebased

Done!

tests/dialects/test_spark.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@georgesittas georgesittas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@tobymao tobymao merged commit 444dd94 into tobymao:main May 4, 2023
@vegarsti vegarsti deleted the spark-more-functions branch May 15, 2023 06:05
adrianisk pushed a commit to adrianisk/sqlglot that referenced this pull request Jun 21, 2023
* Fix(Spark): Add DOUBLE, FLOAT cast functions

Sorry, thought I'd added all these.

* Dry it up by extracting into _parse_as_cast

* Forgot BOOLEAN

* Forgot a comma

* Loop over data type casts in test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants