yydeng626 opened a new pull request, #29627:
URL: https://github.com/apache/shardingsphere/pull/29627

   Fixes #29174.
   
   Changes proposed in this pull request:
     - add execute clause segment [offical 
link](https://learn.microsoft.com/en-us/sql/t-sql/language-elements/execute-transact-sql?view=sql-server-ver16)
   
   ```
   SELECT ProductId, Name, value
   FROM Product
       CROSS APPLY STRING_SPLIT(Tags, ',')
   ```
   
   ```
   SELECT value as tag, COUNT(*) AS [number_of_articles]
   FROM Product
       CROSS APPLY STRING_SPLIT(Tags, ',')
   GROUP BY value
   HAVING COUNT(*) > 2
   ORDER BY COUNT(*) DESC
   ```
   
   ```
   SELECT ProductId, Name, Tags
   FROM Product
   WHERE EXISTS (SELECT *
       FROM STRING_SPLIT(Tags, ',')
       WHERE value IN ('clothing', 'road'))
   ```
   
   ```
   INSERT INTO iris_rx_data ("Sepal.Length", "Sepal.Width", "Petal.Length", 
"Petal.Width" , "Species")
   EXECUTE sp_execute_external_script
     @language = N'R'
     , @script = N'iris_data <- iris'
   ```
   ---
   
   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.
   - [ ] 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-unsubscr...@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to