[
https://issues.apache.org/jira/browse/FLINK-21927?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17306922#comment-17306922
]
MaChengLong commented on FLINK-21927:
-------------------------------------
This issue seems easy, let me resolve it? :D
> ExpressionReducer compile fail when running long term
> -----------------------------------------------------
>
> Key: FLINK-21927
> URL: https://issues.apache.org/jira/browse/FLINK-21927
> Project: Flink
> Issue Type: Bug
> Components: Table SQL / Planner
> Affects Versions: 1.12.2
> Reporter: runsun
> Priority: Major
>
> Our online service use flink table api as SQL parse and optimize component.
> When service run several months we found a lot of exceptions and most of
> SQLs run fail. The exception is below:
> org.codehaus.commons.compiler.CompileException: Line 2, Column 39: '{'
> expected instead of '-'
> ExpressionReducer use function newName() in CodeGenUtils.scala to generate
> class name, and use a increasing AtomicInteger variable as class name suffix.
> When run several months, the AtomicInteger is overflow, and the generated
> class name is invalid like "ExpressionReducer$-2147483648".
> If we change the field nameCounter's type to AtomicLong in
> CodeGenUtils.scala, I think it would work well.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)