我在通过JDBC更新Teiid 8.6模型扩展属性时遇到了问题。我可以查询元数据,但在尝试发出更新命令时出现错误。
update "SYS"."Properties" set "Value" = 'VAL1' where "Name" = '{http://example.com/extmodel}prop1' and "UID" = 'mmuuid:e61b4b62-e874-4715-95a8-a5b04e916f5c' and "OID" is null我明白了:
org.teiid.jdbc.TeiidSQLException:
TEIID30492 Remote org.teiid.api.exception.query.QueryValidatorException:
TEIID30492 Metadata does not allow updates on the group: SYS.Properties有没有办法更新这些属性?
发布于 2014-08-02 03:45:44
正如错误消息所述,系统元数据在运行时不可更新。如何更新取决于您使用的是哪种VDB。如果您使用的是动态VDB,则可以在表、过程等的选项属性中更新DDL。
如果使用的是设计器,则可以选择该表。存储过程并在“属性”窗口中更新。
Teiid 9.x roapmap具有更新运行时元数据的功能,一旦实现了该功能,您就可以完成上面提到的操作。
https://stackoverflow.com/questions/21740669
复制相似问题