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

Enable pushdown for json_unquote #24415

Closed
kolbe opened this issue May 5, 2021 · 5 comments · Fixed by #24504
Closed

Enable pushdown for json_unquote #24415

kolbe opened this issue May 5, 2021 · 5 comments · Fixed by #24504
Labels
sig/execution SIG execution type/feature-request Categorizes issue or PR as related to a new feature.

Comments

@kolbe
Copy link
Contributor

kolbe commented May 5, 2021

Feature Request

Is your feature request related to a problem? Please describe:

For some reason, 721782d "forbid json unquote push down".

There's no indication of why it was necessary to forbid this or whether there is any feasible fix for the issue. We should address this limitation so that json_unquote can be pushed down.

@kolbe kolbe added the type/feature-request Categorizes issue or PR as related to a new feature. label May 5, 2021
@bb7133 bb7133 added the sig/execution SIG execution label May 7, 2021
@kolbe
Copy link
Contributor Author

kolbe commented May 12, 2021

@lonng can you provide any additional information about why it was necessary to forbid pushdown of json_unquote to the coprocessor?

@lonng
Copy link
Contributor

lonng commented May 13, 2021

@kolbe I forbade the json_unquote pushdown switcher because I found the implementation inconsistent between TiKV and TiDB when I develop the copr-test testing framework last year. I just simply comment the json_unquote to make the subsequent works going on because I have no time to take an investigation at that time.

I am not sure does this inconsistent have been fixed in the last year. So I think we can uncomment the json_unquote to check the copr-test result.

And it's time to take an investigation if the json_unquote function if it's necessary for some scenarios.

@guo-shaoge
Copy link
Collaborator

The pushdown of json_unquote will be enabled after this PR is merged.

@kolbe
Copy link
Contributor Author

kolbe commented May 18, 2021

@guo-shaoge can we demonstrate that this passes any set of tests to verify correctness? Are there any MySQL or MariaDB tests we can adopt?

@guo-shaoge
Copy link
Collaborator

guo-shaoge commented May 18, 2021

@guo-shaoge can we demonstrate that this passes any set of tests to verify correctness? Are there any MySQL or MariaDB tests we can adopt?

We have some tests for json_unquote in copr-test and I verified that these cases are passed.

But the test coverage is very small(just 50 SQL). So maybe we should only enable the pushdown on master branch. And add more testing for json_XXX before next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/execution SIG execution type/feature-request Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants