You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@streampipes.apache.org by "Dominik Riemer (Jira)" <ji...@apache.org> on 2022/11/26 13:34:00 UTC

[jira] [Commented] (STREAMPIPES-162) Postgres Column Names are case sentitiv and save leads to error

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

Dominik Riemer commented on STREAMPIPES-162:
--------------------------------------------

This issue has been migrated to https://github.com/apache/streampipes/issues/357

> Postgres Column Names are case sentitiv and save leads to error
> ---------------------------------------------------------------
>
>                 Key: STREAMPIPES-162
>                 URL: https://issues.apache.org/jira/browse/STREAMPIPES-162
>             Project: StreamPipes
>          Issue Type: Bug
>            Reporter: Florian Micklich
>            Assignee: Tim Bossenmaier
>            Priority: Major
>             Fix For: 0.68.0
>
>         Attachments: image-2021-03-16-13-45-32-927.png
>
>
> Usinfg the Randomdata-Adapter with a Postgres Sink:
> The database, schema and table is created as expected but during save in the Postgres Sink
> but during save I get all the time:
>  Table 'testtable' was unexpectedly not found and gets recreated.
>  ERROR: column "randomText" of relation "testtable" does not exist
> So the first message is a little bit misleading, because the table
> exists but can't be found and will be recreated in an endless loop.
> The reason is because this statement during the
> generatePreparedStatement method:
> {code:java}
> 	INSERT INTO testschema.testtable ( "randomText", "randomNumber", "count", "timestamp" ) VALUES ( 'c', 69, 83531, 1591611708415 );
> {code}
> The problem here is that postgres uses lowercases for the column names.
> So instead of randomText then name has to be randomtext:
> {code:java}
> 	INSERT INTO testschema.testtable ( "randomtext", "randomnumber", "count", "timestamp" ) VALUES ( 'c', 69, 83531, 1591611708415 )
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)