You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "strongduanmu (via GitHub)" <gi...@apache.org> on 2023/10/19 07:29:25 UTC
[I] SQL syntax exception occurs when I execute `select listagg(val,',') within group(order by val) vals from t1 group by id` with oracle [shardingsphere]
strongduanmu opened a new issue, #28801:
URL: https://github.com/apache/shardingsphere/issues/28801
## Bug Report
### Which version of ShardingSphere did you use?
[299fecc](https://github.com/apache/shardingsphere/commit/299fecc718ada7737f77b98d58caf5c3f70eb0f7)
### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
ShardingSphere-JDBC
### Expected behavior
Parse `select listagg(val,',') within group(order by val) vals from t1 group by id` successfully.
### Actual behavior
```
java.sql.SQLException: You have an error in your SQL syntax: select listagg(val,',') within group(order by val) vals from t1 group by id, null
at org.apache.shardingsphere.infra.exception.core.external.sql.ShardingSphereSQLException.toSQLException(ShardingSphereSQLException.java:62)
at org.apache.shardingsphere.infra.exception.dialect.SQLExceptionTransformEngine.toSQLException(SQLExceptionTransformEngine.java:54)
at org.apache.shardingsphere.driver.jdbc.core.statement.ShardingSphereStatement.executeQuery(ShardingSphereStatement.java:230)
at org.apache.shardingsphere.driver.ShardingSphereDriverTest.assertDualWrite(ShardingSphereDriverTest.java:119)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
```
### Reason analyze (If you can)
### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
### Example codes for reproduce this issue (such as a github link).
--
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.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] SQL syntax exception occurs when I execute `select listagg(val,',') within group(order by val) vals from t1 group by id` with oracle [shardingsphere]
Posted by "strongduanmu (via GitHub)" <gi...@apache.org>.
strongduanmu commented on issue #28801:
URL: https://github.com/apache/shardingsphere/issues/28801#issuecomment-1770254902
This problem occurred because I passed the wrong databaseType during testing. When I fixed the databaseType, the problem was fixed.
--
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: [I] SQL syntax exception occurs when I execute `select listagg(val,',') within group(order by val) vals from t1 group by id` with oracle [shardingsphere]
Posted by "strongduanmu (via GitHub)" <gi...@apache.org>.
strongduanmu closed issue #28801: SQL syntax exception occurs when I execute `select listagg(val,',') within group(order by val) vals from t1 group by id` with oracle
URL: https://github.com/apache/shardingsphere/issues/28801
--
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