[ https://issues.apache.org/jira/browse/FLINK-29191?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
luoyuxia updated FLINK-29191: ----------------------------- Description: When using Hive dialect, we can use {code:java} set k1=v1; {code} to set variable to Flink's table config. But if we want the get the value for `k1` by using {code:java} set k1; {code} we will get nothing. The reason is Hive dialect won't lookup the vairable in Flink's table config. To fix it, we also need to lookup in Flink's table config. was: When using Hive dialect, we can use {code:java} set k1=v1; {code} to set variable to Flink's table config. But if we want the get the value for `k1` by using {code:java} set k1; {code} we will get nothing. The reason is Hive dialect won't lookup the vairable in Flink's table config. To fix it, we also need to lookup in link's table config. > Hive dialect can't get value for the variables set by set command > ------------------------------------------------------------------ > > Key: FLINK-29191 > URL: https://issues.apache.org/jira/browse/FLINK-29191 > Project: Flink > Issue Type: Bug > Components: Connectors / Hive > Affects Versions: 1.16.0 > Reporter: luoyuxia > Priority: Major > Labels: pull-request-available > Fix For: 1.16.0 > > > When using Hive dialect, we can use > {code:java} > set k1=v1; > {code} > to set variable to Flink's table config. > But if we want the get the value for `k1` by using > {code:java} > set k1; > {code} > we will get nothing. > The reason is Hive dialect won't lookup the vairable in Flink's table config. > To fix it, we also need to lookup in Flink's table config. -- This message was sent by Atlassian Jira (v8.20.10#820010)