[ https://issues.apache.org/jira/browse/FLINK-18657?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Flink Jira Bot updated FLINK-18657: ----------------------------------- Labels: auto-deprioritized-major auto-deprioritized-minor (was: auto-deprioritized-major stale-minor) Priority: Not a Priority (was: Minor) This issue was labeled "stale-minor" 7 days ago and has not received any updates so it is being deprioritized. If this ticket is actually Minor, please raise the priority and ask a committer to assign you the issue or revive the public discussion. > Change semantics of DESCRIBE SELECT statement > --------------------------------------------- > > Key: FLINK-18657 > URL: https://issues.apache.org/jira/browse/FLINK-18657 > Project: Flink > Issue Type: Improvement > Components: Table SQL / API > Affects Versions: 1.11.0 > Reporter: Fabian Hueske > Priority: Not a Priority > Labels: auto-deprioritized-major, auto-deprioritized-minor > > Running a {{DESCRIBE SELECT ...}} returns the same as {{EXPLAIN PLAN FOR > SELECT ...}}, i.e., an unstructured, textual description of the execution > plan. > I think it would be more consistent and also more useful if {{DESCRIBE SELECT > ...}} would display the result schema of the {{SELECT}} query, just like > {{DESCRIBE TABLE xxx}} shows the schema of the table {{xxx}}. This would be > useful for users who need to create a sink table to write the result schema > of a SELECT query and figure out the schema of the query. > This would be a breaking change, but {{DESCRIBE SELECT ...}} seems to be an > undocumented feature (at least it is not listed on the [DESCRIBE > docs|https://ci.apache.org/projects/flink/flink-docs-release-1.11/dev/table/sql/describe.html]) > and the original behavior would be still available via {{EXPLAIN PLAN FOR > SELECT ...}} (which is documented). -- This message was sent by Atlassian Jira (v8.20.1#820001)