yydeng626 opened a new pull request, #30189:
URL: https://github.com/apache/shardingsphere/pull/30189
Fixes #29175.
Changes proposed in this pull request:
- support rownumber function parser
- support following sql case
```
1. SELECT session_id as SPID, command, a.text AS Query, start_time,
percent_complete
, dateadd(second,estimated_completion_time/1000, getdate()) as
estimated_completion_time
FROM sys.dm_exec_requests r
CROSS APPLY sys.dm_exec_sql_text(r.sql_handle) a
WHERE r.command in ('BACKUP DATABASE','RESTORE DATABASE')
2. SELECT * FROM (
SELECT col1, ROW_NUMBER () OVER (PARTITION by col1 ORDER BY col1) rn
FROM tab1 WHERE col1='XYZ'
) WHERE rn = 1
3. SELECT count(*)
FROM input
GROUP BY clusterid, tumblingwindow (minutes, 5)
```
- not sql server syntax case
```
// Azure Database for PostgreSQL syntax not sql server , do not parser , see
[Azure Database for PostgreSQL
Reference](https://learn.microsoft.com/zh-cn/azure/postgresql/flexible-server/concepts-logical)
1. SELECT pglogical.replication_set_add_all_tables('myreplicationset',
'{public}'::text[])
2. SELECT pglogical.replication_set_add_all_tables('default',
ARRAY['testUser'])
```
---
Before committing this PR, I'm sure that I have checked the following
options:
- [ ] My code follows the [code of
conduct](https://shardingsphere.apache.org/community/en/involved/conduct/code/)
of this project.
- [ ] I have self-reviewed the commit code.
- [ ] I have (or in comment I request) added corresponding labels for the
pull request.
- [ ] 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.
- [ ] 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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]