apex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (APEXMALHAR-2330) JdbcPOJOPollInputOperator fails with NullPointerException when PostgreSQL driver
Date Wed, 09 Nov 2016 16:16:58 GMT

    [ https://issues.apache.org/jira/browse/APEXMALHAR-2330?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15651331#comment-15651331
] 

ASF GitHub Bot commented on APEXMALHAR-2330:
--------------------------------------------

Github user deepak-narkhede 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)

Mime
View raw message