You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@linkis.apache.org by GitBox <gi...@apache.org> on 2022/01/30 09:28:40 UTC

[GitHub] [incubator-linkis] CCweixiao opened a new issue #1358: [Bug] the bug of SQLCodeParser

CCweixiao opened a new issue #1358:
URL: https://github.com/apache/incubator-linkis/issues/1358


   ### Search before asking
   
   - [X] I searched the [issues](https://github.com/apache/incubator-linkis/issues) and found no similar issues.
   
   
   ### Linkis Component
   
   linkis-commons
   
   ### What happened + What you expected to happen
   
   sql中含有';'时 不能正确切割SQL,如下图
   
   When sql contains ';', the SQL cannot be cut correctly, as shown below:
   
   ![image](https://user-images.githubusercontent.com/27730211/151694159-81d6d1d4-7441-4909-8a56-df0e46279dba.png)
   
   
   ### Relevent platform
   
   scala jdk8
   
   ### Reproduction script
   
   ```scala
   object CodeParserTest {
     def main(args: Array[String]): Unit = {
       val parser = new SQLCodeParser
       val sqlList = parser.parse(
         """
           select cast(CONCAT(a.brief,';',b.newstitle) AS VARCHAR) as mz_reason from test_table
         """.stripMargin)
       sqlList.foreach(x=>{
         println(x)
         println("----------")
       })
     }
   }
   ```
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [ ] Yes I am willing to submit a PR!


-- 
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: commits-unsubscribe@linkis.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org


[GitHub] [incubator-linkis] CCweixiao closed issue #1358: [Bug] the bug of SQLCodeParser

Posted by GitBox <gi...@apache.org>.
CCweixiao closed issue #1358:
URL: https://github.com/apache/incubator-linkis/issues/1358


   


-- 
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: commits-unsubscribe@linkis.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org


[GitHub] [incubator-linkis] CCweixiao closed issue #1358: [Bug] the bug of SQLCodeParser

Posted by GitBox <gi...@apache.org>.
CCweixiao closed issue #1358:
URL: https://github.com/apache/incubator-linkis/issues/1358


   


-- 
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: commits-unsubscribe@linkis.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org