You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apex.apache.org by "Deepak Narkhede (JIRA)" <ji...@apache.org> on 2016/11/08 12:45:58 UTC

[jira] [Created] (APEXMALHAR-2330) JdbcPOJOPollInputOperator fails with NullPointerException when PostgreSQL driver

Deepak Narkhede created APEXMALHAR-2330:
-------------------------------------------

             Summary: JdbcPOJOPollInputOperator fails with NullPointerException when PostgreSQL driver
                 Key: APEXMALHAR-2330
                 URL: https://issues.apache.org/jira/browse/APEXMALHAR-2330
             Project: Apache Apex Malhar
          Issue Type: Bug
            Reporter: Deepak Narkhede
            Assignee: Deepak Narkhede


Here is the description:
Problem: 
JdbcPOJOPollInputOperator fails with NullPointerException when PostgreSQL driver.

Problem Description:
1) When JdbcPOJOPollInputOperator tries to populateColumnDataTypes, column names retrieved from resultmetadata from database ( this case : Postgres) are all lowercase.
2) Whereas columnDatatypes specified in fieldinfos might be in same case.
3) Internally hashmap ( nameToType) is used which mismatches if column name and fieldinfo are not in same case. Hence columnDataTypes is empty which causes null exception in activate call.

Proposed Solution:
Using similar case for hashmap and column names irrespective of any database used for JdbcPOJOPollInputOperator.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)