[
https://issues.apache.org/jira/browse/APEXMALHAR-2330?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15704974#comment-15704974
]
ASF GitHub Bot commented on APEXMALHAR-2330:
--------------------------------------------
Github user asfgit closed the pull request at:
https://github.com/apache/apex-malhar/pull/489
> 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)