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

feat(function): Support cast variant to other data types #4787

Merged
merged 2 commits into from
Apr 11, 2022

Conversation

b41sh
Copy link
Member

@b41sh b41sh commented Apr 10, 2022

I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/

Summary

Support cast variant to other data types

for example:

mysql> select get_path(parse_json('{"a":12}'), 'a')::uint8;
+------------------------------------------------------+
| cast(get_path(parse_json('{"a":12}'), 'a') as UInt8) |
+------------------------------------------------------+
|                                                   12 |
+------------------------------------------------------+
1 row in set (0.03 sec)

Changelog

  • New Feature
  • Build/Testing/CI

Related Issues

Fixes #4777

@vercel
Copy link

vercel bot commented Apr 10, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/databend/databend/36FpJnCr9z9gPMnEP3c85Eh7rDXK
✅ Preview: Ignored

[Deployment for 867eb4c canceled]

@mergify
Copy link
Contributor

mergify bot commented Apr 10, 2022

Thanks for the contribution!
I have applied any labels matching special text in your PR Changelog.

Please review the labels and make any necessary changes.

@mergify mergify bot added pr-feature this PR introduces a new feature to the codebase pr-build this PR changes build/testing/ci steps labels Apr 10, 2022
@b41sh b41sh requested a review from sundy-li April 10, 2022 16:07
@BohuTANG BohuTANG merged commit 6b12467 into databendlabs:main Apr 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need-review pr-build this PR changes build/testing/ci steps pr-feature this PR introduces a new feature to the codebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Casting from Variant into Other types.
4 participants