2016-11-24 165 views
2

我想更新表是通过Pentaho红移。提示以下错误信息:[亚马逊] [JDBC](10220)驱动程序不支持

2016/11/24 18:15:37 - Dimension lookup/update.0 - Dimension Lookup setting preparedStatement to [SELECT cnsmr_id_KEY, Version, crm_cnsmr_id, trvs_core_cnsmr_id, cnsmr_first_name, cnsmr_last_name, cnsmr_email, contact_no, cnsmr_pswd, bus_id, primary_geo_id, cnsmr_loc_id, cnsmr_cc_handle, cnsmr_cc_desc, cnsmr_cc_expiry_date, bill_cycle_start_date, bill_cycle_end_date, registration_date, active_flag, deactivation_date, created_at, updated_at, created_by, updated_by, null, null FROM staging.trvs_consumer WHERE cnsmr_id = ? AND ? >= null 
2016/11/24 18:15:37 - Dimension lookup/update.0 - AND ? < null 
2016/11/24 18:15:37 - Dimension lookup/update.0 - ] 
2016/11/24 18:15:38 - Dimension lookup/update.0 - Finished preparing dimension lookup statement. 

2016/11/24 18:15:39 - Dimension lookup/update.0 - SQL w/ return keys=[INSERT INTO staging.trvs_consumer(Version, null, null, cnsmr_id, crm_cnsmr_id, trvs_core_cnsmr_id, cnsmr_first_name, cnsmr_last_name, cnsmr_email, contact_no, cnsmr_pswd, bus_id, primary_geo_id, cnsmr_loc_id, cnsmr_cc_handle, cnsmr_cc_desc, cnsmr_cc_expiry_date, bill_cycle_start_date, bill_cycle_end_date, registration_date, active_flag, deactivation_date, created_at, updated_at, created_by, updated_by) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)] 

2016/11/24 18:15:39 - Dimension lookup/update.0 - ERROR (version 6.1.0.1-196, build 1 from 2016-04-07 12.08.49 by buildguy) : Because of an error this step can't continue: 
2016/11/24 18:15:39 - Dimension lookup/update.0 - Unable to prepare dimension insert : 
2016/11/24 18:15:39 - Dimension lookup/update.0 - INSERT INTO staging.trvs_consumer(Version, null, null, cnsmr_id, crm_cnsmr_id, trvs_core_cnsmr_id, cnsmr_first_name, cnsmr_last_name, cnsmr_email, contact_no, cnsmr_pswd, bus_id, primary_geo_id, cnsmr_loc_id, cnsmr_cc_handle, cnsmr_cc_desc, cnsmr_cc_expiry_date, bill_cycle_start_date, bill_cycle_end_date, registration_date, active_flag, deactivation_date, created_at, updated_at, created_by, updated_by) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) 

2016/11/24 18:15:39 - Dimension lookup/update.0 - [Amazon][JDBC](10220) Driver not capable. 

从Pentaho的论坛,我才知道,它是一种错误的产生NULL列(http://jira.pentaho.com/browse/PDI-2292

对我产生一个空行与代理键0和所有其他值NULL。

之后,当我尝试运行转换时,出现以下错误。

2016/11/24 21:00:32 - Dimension lookup/update.0 - INSERT INTO staging.trvs_consumer(null, created_at, updated_at, cnsmr_id, crm_cnsmr_id, trvs_core_cnsmr_id, cnsmr_first_name, cnsmr_last_name, cnsmr_email, contact_no, cnsmr_pswd, bus_id, primary_geo_id, cnsmr_loc_id, cnsmr_cc_handle, cnsmr_cc_desc, cnsmr_cc_expiry_date, bill_cycle_start_date, bill_cycle_end_date, registration_date, active_flag, deactivation_date, created_at, updated_at, created_by, updated_by) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) 2016/11/24 21:00:32 - Dimension lookup/update.0 - [Amazon][JDBC](10220) Driver not capable.

我应如何处理?

回答

1

注意一个字符串

2016/11/24 18:15:39 - Dimension lookup/update.0 - SQL w/ return keys=[INSERT INTO staging.trvs_consumer(Version, null, null, cnsmr_id, crm_cnsmr_id, 

或短

INSERT INTO staging.trvs_consumer(Version, null, null, cnsmr_id, 

你真的要插入称为空和空列?

+0

嗨Dzmitry,我已更新有问题的错误消息。请让我知道,我在哪里摇摇欲坠? – Sarang

0

当我使用Dimension \ Lookup更新时,有一个选项用于捕获SCD 2类型更改,其中数据版本控制是通过Pentaho转换在表中完成的。

我得到的错误,是因为我没有将值传递到日期从和日期直到字段,因此它被传递为空。这些字段中的空值显然不利于版本控制原因,从而导致错误。

请在这里发帖,如果你有任何进一步的问题。