liquibase - Liquibase Snowflake 集成 - 具体来说:generateChangeLog
问题描述
调用时:mvn liquibase:generateChangeLog 我收到此错误:
*Object 'DATAWAREHOUSE_DB_DEV.INFORMATION_SCHEMA.CONSTRAINTS' does not exist or not authorized.*
有没有人找到解决此问题的方法?Snowflake 似乎有一个视图 DATAWAREHOUSE_DB_DEV.INFORMATION_SCHEMA.TABLE_CONSTRAINTS 但 Snowflake 不支持同义词,您无法在 INFORMATION_SCHEMA 中创建任何新视图(以匹配 liquibase 正在寻找的内容)。
解决方案
在我看来,这就像 Liquibase 版本问题或类似问题。
如果您确实需要一种解决方法,您能否在不同的架构中创建一个适用于您的解决方案的视图?
类似于:
create view public.constraints(constraint_catalog, constraint_schema, constraint_name) as (
-- Start at the top of the hierarchy ...
select constraint_catalog, constraint_schema, constraint_name
from information_schema.table_constraints
);
select * from public.constraints;
推荐阅读
- uwp - 如何获取已安装的 nuget 包信息
- php - 为什么我的提交按钮不能将信息发送到我想要的电子邮件?(PHP)
- cordova - 应用程序和打开的窗口之间的通信
- php - 通过 PHP 生成 Excel 工作表 (CSV)
- typescript - 如何在新的命名空间下使用已经声明的类型?
- java - 在 Android 中使用 ContentProvider+Room 访问数据库的最佳实践是什么?
- netsuite - 如何在 NetSuite 中从 SOAP 请求中设置一个空的自定义国家/地区字段
- c# - 检查给定索引后集合中的所有内容是否为空的最简单方法是什么?
- python - 将 Pandas 系列转换为数据框
- c++ - 在 C++ 中将十进制转换为十六进制