Thanks for building such a great product.
I'm using Vertica ODBC drivers (v7.0.0, Community Edition) via ODBC API to connection Vertica7 server and to load about 200MB data.
Several strange issues encountered.
1. During inserting data, it might failed with error message,
Jan 06 14:51:40 INFO 7868 Statement::SQLGetStmtAttrW: Attribute: 10010Jan 06 14:51:40 INFO 7868 Statement::SQLGetStmtAttrW: Attribute: 10011Jan 06 14:51:40 INFO 7868 Statement::SQLGetStmtAttrW: Attribute: 10012Jan 06 14:51:40 INFO 7868 Statement::SQLGetStmtAttrW: Attribute: 10013Jan 06 14:51:40 INFO 7868 VDataEngine::Prepare: Original Query: INSERT INTO CM3TM2 ("NUMBER","ERP_TYPE","ERP_SID","ERP_CLIENT","ERP_GATEWAY_ID","ERP_APPROVER","ERP_IMPORTED","ERP_DEVELOPMENT_CLIENT","ERP_DEVELOPMENT_SID","ERP_DEVELOPMENT_GATEWAY_ID","ESTIMATE_UNITS","ESTIMATE_PRICE","ESTIMATE_DESCRIPTION","ESTIMATE_DELIVERY","ESTIMATE_BUDGET","ESTIMATE_EFFORT","ESTIMATE_GRADE","ACTUAL_UNITS","ACTUAL_COST","ACTUAL_PRICE","ACTUAL_GRADE","CORP_STRUCTURE","NEXT_BREACH","ID","TASK_UPDATE","COMPLETION_CODE","HOURS_WORKED","CLOSING_COMMENTS","PARTS","LABOR","SYSMODCOUNT","SYSMODUSER","SYSMODTIME","INITIAL_IMPACT","SEVERITY","FOLDER","ACTUALEND","ACTUALSTART","AFFECTED_ITEM","REJECTREASON","IMPACT_SEVERITY","RISK_SEVERITY","COLLISION_SEVERITY","APPROVALCOMMENTS","REVIEWER_ASSIGN_DEPT","REVIEWER_ASSIGNED_TO","REVIEW_COMMENTS") VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)Jan 06 14:51:40 INFO 7868 VDataEngine::Prepare: Query: INSERT INTO CM3TM2 ("NUMBER","ERP_TYPE","ERP_SID","ERP_CLIENT","ERP_GATEWAY_ID","ERP_APPROVER","ERP_IMPORTED","ERP_DEVELOPMENT_CLIENT","ERP_DEVELOPMENT_SID","ERP_DEVELOPMENT_GATEWAY_ID","ESTIMATE_UNITS","ESTIMATE_PRICE","ESTIMATE_DESCRIPTION","ESTIMATE_DELIVERY","ESTIMATE_BUDGET","ESTIMATE_EFFORT","ESTIMATE_GRADE","ACTUAL_UNITS","ACTUAL_COST","ACTUAL_PRICE","ACTUAL_GRADE","CORP_STRUCTURE","NEXT_BREACH","ID","TASK_UPDATE","COMPLETION_CODE","HOURS_WORKED","CLOSING_COMMENTS","PARTS","LABOR","SYSMODCOUNT","SYSMODUSER","SYSMODTIME","INITIAL_IMPACT","SEVERITY","FOLDER","ACTUALEND","ACTUALSTART","AFFECTED_ITEM","REJECTREASON","IMPACT_SEVERITY","RISK_SEVERITY","COLLISION_SEVERITY","APPROVALCOMMENTS","REVIEWER_ASSIGN_DEPT","REVIEWER_ASSIGNED_TO","REVIEW_COMMENTS") VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
Jan 06 14:51:40 INFO 7868 VQueryExecutor::FinishStreamingExecution: Sending end of load message
Jan 06 14:51:40 ERROR 7868 Statement::SQLPrepareW: [Vertica][ODBC] (10000) General error: Unexpected exception has been caught.
- Then, if we continue loading other data, there would be random same error threw, and then the ODBC driver would be hung.
When the odbc driver hangs, from the call stack, it seems hangs in "free()" routine, sorry cannot provide full call stack.
- If we disconnect with vertica db and reconnect and retry the insert, the process would succeed.
- BTW, I'm using Win7 64bit, but my client is a 32-bit unicode application.
2. Another issue is, during data loading, I also need to fetch some BLOB data (long varbinary(655360) ) from database. And randomly, it might fetch incorrect data content,
Then, if fetch the same data again immediately, the result would be correct.
- More info about "incorrect data content", the data size seems correct, but the data is incorrect.
- And in the ODBC DSN data source, the "Driver string Conversions" is set to none.
The option "Report Unicode columns as char" is unchecked.
SSL and Kerberos is not enabled.
"Auto commit " is also unchecked.
I'm not sure whether this issue is result incorrect client application coding or caused by some defect in ODBC driver.
Could you please share more insight?
BTW, I'm not familiar with Vertica (only started 2 weeks ago) , if you need more information, please feel free to drop me a mail or ping me via OC (I'm working at HP, too
)