雪花上不彻底更改列类型
我在Snowfflake中有视线。 当前,其中一列是地理类型,由于几何形状,我无法在数据集上运行任何查询。 我想将特定列的类型更改为VARCHAR,以加载数据,而无需永久更改。 我试图使用Alter_table:
ALTER TABLE "TABLES"."FBN"."TABLE" ALTER COLUMN "GEOMETRY" TYPE VARCHAR
但是似乎应该永久更改数据,因为我获得了我没有特权操作的错误:
SQL access control error: Insufficient privileges to operate on view 'TABLE'
我想在阅读表格时更改数据的类型,以便我可以下载数据及之后修复了地理业。 我的最终目标是永久更改列类型,以便我可以阅读数据。
I have view in snowfflake.
Currently, one of the columns is geography type and it I cannot run any query on the dataset due to invalid geometry.
I want to change the type of the specific column to varchar just in order to load the data, without permanently change it.
I have tried to use ALTER_TABLE :
ALTER TABLE "TABLES"."FBN"."TABLE" ALTER COLUMN "GEOMETRY" TYPE VARCHAR
but seems like that suppose to change data permanently, as I get error that I don't have privileges to operate this:
SQL access control error: Insufficient privileges to operate on view 'TABLE'
I want to change the type of data just when I read the table so I can download the data and after that fix the geoemtry.
My end goal here is to change column type no permanently so I can read the data.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有机会使用谓词下降来使其起作用:
There is a chance to use predicate pushdown to make it work: