Anirudh
10/09/2024, 5:34 AMcreateTemporaryView. One of fields of my datastream which has an enum field in it. While compiling (org.apache.flink.table.runtime.generated.CompileUtils.doCompile(CompileUtils.java:107)), I get the following error(s)
- Caused by: org.apache.flink.api.common.InvalidProgramException: Table program cannot be compiled. This is a bug. Please file an issue.
and
- Caused by: org.codehaus.commons.compiler.CompileException: Line 36, Column 88: Cannot cast "book_status_enum" to "java.lang.String"
The corresponding line generated is
genericRow.setField(25, fieldConverters[25].toInternalOrNull(((java.lang.String) external.book_status)));
which is causing the issue.
Has someone faced a similar issue while using enums? What course of action should I take to correct this error? (For reference, I am using Flink 1.18. Please let me know if any more information is needed!)