【问题标题】:Athena: Create view on information_schemaAthena:在 information_schema 上创建视图
【发布时间】:2019-11-15 13:51:59
【问题描述】:

这很好用:

select i.* 
from information_schema.tables i

但这失败了:

create view myschema.test
as
select i.* 
from information_schema.tables i

第 3:15 行:Schema information_schema 不存在

我也试过完全合格的:

AwsDataCatalog.information_schema.tables

...仍然没有快乐! ..所以我错过了一些明显的东西吗?

谢谢

【问题讨论】:

  • 你有没有想过这个问题?遇到同样的事情
  • 不,恐怕不会。我仍然需要回到的东西,但刚刚被其他优先事项击败:(

标签: amazon-athena information-schema


【解决方案1】:

如果您执行 create table XXX as select * from information_schema.tables 它可以工作,您可以在其他视图中使用它

【讨论】:

    猜你喜欢
    • 2019-06-25
    • 1970-01-01
    • 2019-10-10
    • 1970-01-01
    • 2021-01-14
    • 2023-01-21
    • 1970-01-01
    • 2021-04-30
    • 2018-11-18
    相关资源
    最近更新 更多