You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Shengkai Fang (Jira)" <ji...@apache.org> on 2022/08/31 06:46:00 UTC

[jira] [Created] (FLINK-29151) SHOW CREATE TABLE doesn't work for Hive dialect

Shengkai Fang created FLINK-29151:
-------------------------------------

             Summary: SHOW CREATE TABLE doesn't work for Hive dialect
                 Key: FLINK-29151
                 URL: https://issues.apache.org/jira/browse/FLINK-29151
             Project: Flink
          Issue Type: Improvement
          Components: Connectors / Hive
    Affects Versions: 1.16.0
            Reporter: Shengkai Fang


{code:java}
0: jdbc:hive2://localhost:10000/default> show create table sink;
Error: org.apache.flink.table.gateway.service.utils.SqlExecutionException: Failed to execute the operation 9b060771-34b8-453d-abf5-674c86b62921.
    at org.apache.flink.table.gateway.service.operation.OperationManager$Operation.processThrowable(OperationManager.java:389)
    at org.apache.flink.table.gateway.service.operation.OperationManager$Operation.lambda$run$0(OperationManager.java:248)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.flink.table.api.ValidationException
    at org.apache.flink.table.planner.delegation.hive.parse.HiveParserDDLSemanticAnalyzer.handleUnsupportedOperation(HiveParserDDLSemanticAnalyzer.java:2188)
    at org.apache.flink.table.planner.delegation.hive.parse.HiveParserDDLSemanticAnalyzer.convertToOperation(HiveParserDDLSemanticAnalyzer.java:414)
    at org.apache.flink.table.planner.delegation.hive.HiveParser.processCmd(HiveParser.java:334)
    at org.apache.flink.table.planner.delegation.hive.HiveParser.parse(HiveParser.java:213)
    at org.apache.flink.table.gateway.service.operation.OperationExecutor.executeStatement(OperationExecutor.java:90)
    at org.apache.flink.table.gateway.service.SqlGatewayServiceImpl.lambda$executeStatement$0(SqlGatewayServiceImpl.java:182)
    at org.apache.flink.table.gateway.service.operation.OperationManager.lambda$submitOperation$1(OperationManager.java:111)
    at org.apache.flink.table.gateway.service.operation.OperationManager$Operation.lambda$run$0(OperationManager.java:239)
    ... 7 more
Caused by: java.lang.UnsupportedOperationException: Unsupported operation: TOK_SHOW_CREATETABLE
    ... 15 more (state=,code=0) {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)