Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-21465

Extend explain syntax

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None

    Description

      Allow users to specify the ExplainDetails in statement.

      EXPLAIN [ExplainDetail[, ExplainDetail]*] <statement>
      
      
      
      ExplainDetail: {
      
        ESTIMATED_COST,
      
        CHANGELOG_MODE,
      
        JSON_EXECUTION_PLAN
      
      }
      

      Print the plan for the statement with specified ExplainDetails.

      ESTIMATED_COST
      generates cost information on physical node estimated by optimizer, e.g. TableSourceScan(..., cumulative cost =

      {1.0E8 rows, 1.0E8 cpu, 2.4E9 io, 0.0 network, 0.0 memory}

      )

      CHANGELOG_MODE
      generates changelog mode for every physical rel node. e.g. GroupAggregate(..., changelogMode=[I,UA,D])

      JSON_EXECUTION_PLAN
      generates the execution plan in json format of the program.

      Flink SQL> EXPLAIN ESTIMATED_COST, CHANGELOG SELECT * FROM MyTable;
      ...
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              fsk119 Shengkai Fang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: