Hi, Is it disallowed to refer to a table from different databases or catalogs when someone creates a table? According to [1], there's no way to refer to tables belonging to different databases or catalogs. Best, Dongwon |
Hi Dongwon ~ Table from different catalog/db is supported, you need to specify the full path of the source table:
Dongwon Kim <[hidden email]> 于2020年11月11日周三 下午2:53写道:
|
Hi Danny~ Sorry for late reply, Let's take a look at a running example: EnvironmentSettings settings = EnvironmentSettings.newInstance() I've got the following log messages: 00:50:22,157 INFO org.apache.flink.table.catalog.hive.HiveCatalog [] - Setting hive conf dir as /Users/eastcirclek/hive-conf It seems like hive.navi.gps is recognized as a table name as a whole. I currently declare such a table by specifying all fields without the LIKE clause. Do I miss something? FYI, I'm working with Flink-1.11.2. Thank you~ Best, Dongwon On Fri, Nov 13, 2020 at 5:19 PM Danny Chan <[hidden email]> wrote:
|
In reply to this post by Dongwon Kim-2
Hi Ingo,
Thank you for letting me know! I didn’t know that’s already discussed. Best, Dongwon 2020. 11. 17. 오전 1:12, Ingo Bürk <[hidden email]> 작성:
|
Yes, this is a bug which is fixed recently [1] for release 1.12 and 1.11.3 You can also switch to the source table catalog first before you execute the CREATE TABLE LIKE DDL just like Ingo suggested. 김동원 <[hidden email]> 于2020年11月17日周二 上午12:19写道:
|
In reply to this post by Dongwon Kim-2
Hi Dongwon, You are hitting a known bug[1] which is fixed in 1.11.3 and 1.12.0 Another tip, currently, LIKE clause cannot work with Hive table. (General table stored in hive metastore should work) Dongwon Kim <[hidden email]> 于2020年11月17日周二 上午12:04写道:
Best, Benchao Li |
Free forum by Nabble | Edit this page |