-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
testutil: When there is //
in the json test data, the test framework will report an error.
#26249
Comments
this may because tidb wants to ignore the comment in json. |
It seems that this is not a planner issue? I take the test in the planner as an example, but other tests may also have this problem. |
I have checked the code, and seem it is the normal behavior? tidb/util/testutil/testutil.go Line 294 in a6326cc
|
I have seen it too, but I think it is unreasonable, tidb introduced a bug (we can't type Or maybe we can find a way to support them both, such as a better parser. |
transfer this ticket to parser/sql_infra team for further enhancement. |
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
change any testdata json file , add
//
in it, just like:add run this test:
2. What did you expect to see? (Required)
test pass.
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
20210714 master
https://github.com/pingcap/tidb/tree/737fa5b743c365e6bd7a7c30c54f9cb299b01e8d
The text was updated successfully, but these errors were encountered: