Liangda-w commented on a change in pull request #11936:
URL: https://github.com/apache/shardingsphere/pull/11936#discussion_r693361341



##########
File path: 
shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-oracle/src/main/java/org/apache/shardingsphere/sql/parser/oracle/visitor/statement/impl/OracleDDLStatementSQLVisitor.java
##########
@@ -425,6 +425,9 @@ public ASTNode visitAssociateStatistics(final 
AssociateStatisticsContext ctx) {
             for (IndexNameContext each: ctx.functionAssociation().indexName()) 
{
                 result.getIndexes().add((IndexSegment) visit(each));
             }
+//            for (FunctionContext each: ctx.functionAssociation().function()) 
{
+//                result.getFunctions().add((FunctionSegment) visit(each));
+//            }

Review comment:
       Hi @wgy8283335, I tried to parse `function` segment in a similar with as 
`index` segment. However, with these commented line above I'm getting this error
   
   ```
   java.lang.ClassCastException: 
org.apache.shardingsphere.sql.parser.sql.common.value.identifier.IdentifierValue
 cannot be cast to 
org.apache.shardingsphere.sql.parser.sql.common.segment.ddl.function.FunctionSegment
   ```
   Do you have idea how to resolve this issue?




-- 
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]


Reply via email to