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

[CH] Get_json_object can not parse abnormal json string which not end with } #3750

Closed
KevinyhZou opened this issue Nov 16, 2023 · 0 comments · Fixed by #3751
Closed

[CH] Get_json_object can not parse abnormal json string which not end with } #3750

KevinyhZou opened this issue Nov 16, 2023 · 0 comments · Fixed by #3751
Labels
bug Something isn't working triage

Comments

@KevinyhZou
Copy link
Contributor

KevinyhZou commented Nov 16, 2023

Backend

CH(ClickHouse)

Bug description

When parse a json string like {"a":"b"}abde, with the end is not '}', by spark, it can parse it as normal, but use gluten, it can not.

The gluten result
+-----------------------------+
| get_json_object(name, $.a) |
+-----------------------------+
| NULL |

The spark query result
spark-sql> select get_json_object(name, '$.a') from test_tbl3 where id = 45;
b

Spark version

Spark-3.3.x

Spark configurations

No response

System information

No response

Relevant logs

No response

@KevinyhZou KevinyhZou added bug Something isn't working triage labels Nov 16, 2023
liuneng1994 pushed a commit that referenced this issue Dec 4, 2023
What changes were proposed in this pull request?
(Please fill in changes proposed in this fix)

(Fixes: #3750 #3808)

How was this patch tested?
TEST BY UT

(If this patch involves UI changes, please attach a screenshot; otherwise, remove this)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant