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

The result of json_length(cast(1 as json), null) isn't same as mysql #50931

Closed
SeaRise opened this issue Feb 2, 2024 · 5 comments · Fixed by #50933
Closed

The result of json_length(cast(1 as json), null) isn't same as mysql #50931

SeaRise opened this issue Feb 2, 2024 · 5 comments · Fixed by #50933
Labels

Comments

@SeaRise
Copy link
Contributor

SeaRise commented Feb 2, 2024

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

select json_length(1, null);

2. What did you expect to see? (Required)

+------------------------------------+
| json_length(cast(1 as json), null) |
+------------------------------------+
|                               NULL |
+------------------------------------+

3. What did you see instead (Required)

+------------------------------------+
| json_length(cast(1 as json), null) |
+------------------------------------+
|                                  1 |
+------------------------------------+

4. What is your TiDB version? (Required)

Git Commit Hash: c0476a0

@SeaRise SeaRise added the type/bug The issue is confirmed as a bug. label Feb 2, 2024
@SeaRise
Copy link
Contributor Author

SeaRise commented Feb 2, 2024

/sig compute

Copy link

ti-chi-bot bot commented Feb 2, 2024

@SeaRise: The label(s) sig/compute cannot be applied, because the repository doesn't have them.

In response to this:

/sig compute

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository.

@SeaRise
Copy link
Contributor Author

SeaRise commented Feb 2, 2024

/sig execution

@SeaRise
Copy link
Contributor Author

SeaRise commented Feb 2, 2024

/severity minor

@SeaRise
Copy link
Contributor Author

SeaRise commented Feb 2, 2024

The result of tikv is same as mysql

@SeaRise SeaRise changed the title The result of json_length(cast(1 as json), null) isn't same as mysql The result of json_length(arg1, arg2) isn't same as mysql Feb 2, 2024
@SeaRise SeaRise changed the title The result of json_length(arg1, arg2) isn't same as mysql The result of json_length(cast(1 as json), null) isn't same as mysql Feb 2, 2024
SeaRise added a commit to SeaRise/tiflash that referenced this issue Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants