2016-11-24 161 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轉換在表中完成的。

我得到的錯誤,是因爲我沒有將值傳遞到日期從和日期直到字段,因此它被傳遞爲空。這些字段中的空值顯然不利於版本控制原因,從而導致錯誤。

請在這裏發帖,如果你有任何進一步的問題。