[
https://issues.apache.org/jira/browse/FLINK-27376?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17577382#comment-17577382
]
Timo Walther commented on FLINK-27376:
--------------------------------------
[~luoyuxia] if you find some time, it would be great if you can simplify the
code a bit. Maybe this is Hive specific but for Flink you don't need to touch
{{FlinkSqlOperatorTable}} or {{DirectConvertRule}} with the new function stack.
Two locations (definition + runtime) should be sufficient.
> Hive dialect supports "select current_database()"
> -------------------------------------------------
>
> Key: FLINK-27376
> URL: https://issues.apache.org/jira/browse/FLINK-27376
> Project: Flink
> Issue Type: Sub-task
> Reporter: luoyuxia
> Assignee: luoyuxia
> Priority: Major
> Labels: pull-request-available
>
> Hive supports select current database using the following sql:
> {code:java}
> select current_database() {code}
> It'll involve Hive's 'GenericUDFCurrentDatabase'in run time, in this udf, it
> will try to call '
> SessionState.get().getCurrentDatabase()', but we has closed the SessionState
> before excuting.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)