Skip to content

[doc]support to json function #2548

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

Merged
merged 3 commits into from
Jun 24, 2025
Merged

[doc]support to json function #2548

merged 3 commits into from
Jun 24, 2025

Conversation

Mryange
Copy link
Contributor

@Mryange Mryange commented Jun 23, 2025

Versions

  • dev
  • 3.0
  • 2.1
  • 2.0

Languages

  • Chinese
  • English

Docs Checklist

  • Checked by AI
  • Test Cases Built


| Parameter | Description |
|-----------|-------------|
| value | The value to be converted to JSONB type. Can be one of the types compatible with JSON mapping. |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里得说清楚value的类型是啥?得有一个白名单。
另外,这里可能别用表格了,表格比如要列举的value的类型可能就不好写。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

在下面

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

理论上这个函数不会直接返回一个 json 的null。
不过可以返回一个json的array,array里面有null。
null这个是参考pg的行为。
输入一个sql的null,返回的也是一个sql的null。
https://dbfiddle.uk/rY6jDsEA

@yiguolei yiguolei merged commit 979c0ab into apache:master Jun 24, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants