首页 文章

无法从SAP HANA在虚拟表(HIVE)中插入数据

提问于
浏览
0

我在Hadoop系统中有一个Hive表(可从HBase看到),在HHANonworks中有一个安装在SAP HANA服务器中的ODBC . 然后,我有一个SAP HANA Studio远程源,我可以在其中看到Hive表 . 远程源定义显示在下图中:

enter image description here

DML模式是“readwrite”

我创建了一个bicing_test虚拟表 . 然后,我可以对此虚拟表运行Select查询,但无法运行Insert / Update Queries:

enter image description

日志错误如下:

Could not execute 'insert into "BICING_USER"."HIVE_bicing_test" values (3)' SAP DBTech JDBC: [7]: feature not supported: datasource doesn't support insert statement: line 1 col 27 (at pos 26)

是否可以在虚拟表中运行插入查询?

感谢您的支持 .

1 回答

  • 0

    这不是通过SDI或SDA的虚拟表的一般限制,而是特定适配器的属性 . 对于SDI,属性记录在EIM SDI/SDQ Admin Guide中 . 在那里它说SDI-HIVE适配器"... INSERT, UPDATE and DELETE functions are more complicated than with “standard” SQL, and therefore they are not supported in this first version of the Hive Adapter..." . 所以我猜SDA适配器有相同的限制,即使我不知道SDA适配器的属性是系统地记录在哪里(是否有任何地方???) .

    一些适配器,例如HANA适配器(用于访问其他HANA系统),SDI DB2 Logreader Adapter等支持插入/更新/删除到虚拟表中 . 您必须检查要使用的特定适配器 .

相关问题