godfrey he created FLINK-26756:
----------------------------------

             Summary: Failed to deserialize for match recognize
                 Key: FLINK-26756
                 URL: https://issues.apache.org/jira/browse/FLINK-26756
             Project: Flink
          Issue Type: Bug
          Components: Table SQL / Planner
    Affects Versions: 1.15.0
            Reporter: godfrey he


Currently, the json deserialization logic is not tested, there de is a bug in 
{{JsonPlanTestBase}}#{{compileSqlAndExecutePlan}} method. The correct logic is 
the {{CompiledPlan}} should be converted to json string, and then the json 
string be deserialized to  {{CompiledPlan}} object. 

After correcting the logic, {{MatchRecognizeJsonPlanITCase}} will get the 
following exception:


{code:java}
        at 
org.apache.flink.table.api.internal.TableEnvironmentImpl.loadPlan(TableEnvironmentImpl.java:714)
        at 
org.apache.flink.table.planner.utils.JsonPlanTestBase.compileSqlAndExecutePlan(JsonPlanTestBase.java:77)
        at 
org.apache.flink.table.planner.runtime.stream.jsonplan.MatchRecognizeJsonPlanITCase.testSimpleMatch(MatchRecognizeJsonPlanITCase.java:66)
{code}

 



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to