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

JSON_ARRAYAGG reprot unsupported second argument type #37287

Closed
Tracked by #36993
xiongjiwei opened this issue Aug 23, 2022 · 0 comments · Fixed by #37389
Closed
Tracked by #36993

JSON_ARRAYAGG reprot unsupported second argument type #37287

xiongjiwei opened this issue Aug 23, 2022 · 0 comments · Fixed by #37389
Assignees
Labels
component/json feature/developing the related feature is in development severity/moderate type/bug The issue is confirmed as a bug.

Comments

@xiongjiwei
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

CREATE TABLE t1 (a FLOAT, b DOUBLE, c DECIMAL(10, 2));
INSERT INTO t1 VALUES (1.0, 2.0, 3.0),(1.0, 3.0, 9.0),(1.0, 4.0, 16.0),(1.0, 5.0, 25.0);
SELECT JSON_VALID(JSON_ARRAYAGG(a)) FROM t1;

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

3. What did you see instead (Required)

mysql> SELECT JSON_VALID(JSON_ARRAYAGG(a)) FROM t1;
ERROR 8066 (HY000): JSON_OBJECTAGG: unsupported second argument type 1

4. What is your TiDB version? (Required)

@xiongjiwei xiongjiwei added type/bug The issue is confirmed as a bug. component/json feature/developing the related feature is in development labels Aug 23, 2022
@YangKeao YangKeao self-assigned this Aug 25, 2022
@xiongjiwei xiongjiwei mentioned this issue Aug 30, 2022
34 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/json feature/developing the related feature is in development severity/moderate type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants