You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "yydeng626 (via GitHub)" <gi...@apache.org> on 2024/01/16 14:06:33 UTC
[PR] Support parsing SQL Server SELECT JSON_OBJECT('name':'value', sql #29160 [shardingsphere]
yydeng626 opened a new pull request, #29740:
URL: https://github.com/apache/shardingsphere/pull/29740
Fixes 29160.
Changes proposed in this pull request:
- add json_object feature [offical link]([offical link](https://learn.microsoft.com/zh-cn/sql/t-sql/queries/hints-transact-sql-table?view=azuresqldb-mi-current)
- add json_array feature [offical link]([offical link](https://learn.microsoft.com/zh-cn/sql/t-sql/functions/json-array-transact-sql?view=sql-server-ver16)
- support sql :
```
SELECT JSON_OBJECT('name':'value', 'type':1)
```
```
SELECT JSON_OBJECT('name':'value', 'type':NULL ABSENT ON NULL)
```
```
SELECT JSON_OBJECT('name':'value', 'type':JSON_ARRAY(1, 2))
```
```
SELECT JSON_OBJECT('name':'value', 'type':JSON_OBJECT('type_id':1, 'name':'a'))
```
```
SELECT JSON_OBJECT('user_name':USER_NAME(), @id_key:@id_value, 'sid':(SELECT @@SPID))
```
---
Before committing this PR, I'm sure that I have checked the following options:
- [x] My code follows the [code of conduct](https://shardingsphere.apache.org/community/en/involved/conduct/code/) of this project.
- [x] I have self-reviewed the commit code.
- [x] I have (or in comment I request) added corresponding labels for the pull request.
- [x] I have passed maven check locally : `./mvnw clean install -B -T1C -Dmaven.javadoc.skip -Dmaven.jacoco.skip -e`.
- [ ] I have made corresponding changes to the documentation.
- [x] I have added corresponding unit tests for my changes.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Support parsing SQL Server SELECT JSON_OBJECT('name':'value', sql #29160 [shardingsphere]
Posted by "strongduanmu (via GitHub)" <gi...@apache.org>.
strongduanmu merged PR #29740:
URL: https://github.com/apache/shardingsphere/pull/29740
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Support parsing SQL Server SELECT JSON_OBJECT('name':'value', sql #29160 [shardingsphere]
Posted by "yydeng626 (via GitHub)" <gi...@apache.org>.
yydeng626 commented on PR #29740:
URL: https://github.com/apache/shardingsphere/pull/29740#issuecomment-1899852605
Please assist me in reviewing the codeļ¼there are certain issues dependent on this particular one.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org