Aalron opened a new issue, #4209:
URL: https://github.com/apache/streampark/issues/4209

   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/streampark/issues?q=is%3Aissue+label%3A%22bug%22)
 and found no similar issues.
   
   
   ### Java Version
   
   _No response_
   
   ### Scala Version
   
   2.12.x
   
   ### StreamPark Version
   
   2.1.5
   
   ### Flink Version
   
   1.19.1
   
   ### Deploy mode
   
   None
   
   ### What happened
   
   When compiling and debugging locally on the dev branch, when MySQL is 
selected as the db storage, an error occurs because the refs field of the 
t_flink_project table schema is missing.
   
   
   ### Error Exception
   
   ```log
   ### Error querying database.  Cause: java.sql.SQLSyntaxErrorException: 
Unknown column 'refs' in 'field list'
   ### The error may exist in 
org/apache/streampark/console/core/mapper/ProjectMapper.java (best guess)
   ### The error may involve defaultParameterMap
   ### The error occurred while setting parameters
   ### SQL: SELECT id, team_id, name, url, refs, last_build, user_name, 
password, prvkey_path, repository, pom, build_args, description, build_state, 
type, create_time, modify_time FROM t_flink_project WHERE (team_id = ?) ORDER 
BY create_time DESC LIMIT ?
   ### Cause: java.sql.SQLSyntaxErrorException: Unknown column 'refs' in 'field 
list'
   ; bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: 
Unknown column 'refs' in 'field list'
        at 
org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.doTranslate(SQLErrorCodeSQLExceptionTranslator.java:239)
        at 
org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:70)
        at 
org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:91)
        at 
org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:441)
        at com.sun.proxy.$Proxy100.selectList(Unknown Source)
        at 
org.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:224)
        at 
com.baomidou.mybatisplus.core.override.MybatisMapperMethod.executeForIPage(MybatisMapperMethod.java:121)
        at 
com.baomidou.mybatisplus.core.override.MybatisMapperMethod.execute(MybatisMapperMethod.java:85)
        at 
com.baomidou.mybatisplus.core.override.MybatisMapperProxy$PlainMethodInvoker.invoke(MybatisMapperProxy.java:148)
        at 
com.baomidou.mybatisplus.core.override.MybatisMapperProxy.invoke(MybatisMapperProxy.java:89)
        at com.sun.proxy.$Proxy121.selectPage(Unknown Source)
        at 
com.baomidou.mybatisplus.extension.conditions.query.ChainQuery.lambda$page$d12b405a$1(ChainQuery.java:86)
        at 
com.baomidou.mybatisplus.extension.conditions.ChainWrapper.execute(ChainWrapper.java:63)
        at 
com.baomidou.mybatisplus.extension.conditions.query.ChainQuery.page(ChainQuery.java:86)
        at 
org.apache.streampark.console.core.service.impl.ProjectServiceImpl.getPage(ProjectServiceImpl.java:195)
        at 
org.apache.streampark.console.core.service.impl.ProjectServiceImpl$$FastClassBySpringCGLIB$$80ad7fa7.invoke(<generated>)
        at 
org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
        at 
org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
        at 
org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)
        at 
org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:123)
   ```
   
   ### Screenshots
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [x] Yes I am willing to submit a PR!(您是否要贡献这个PR?)
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


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