Uploaded image for project: 'StreamPipes'
  1. StreamPipes
  2. STREAMPIPES-127

[Postgres Sink] Using Wrong datatype while cerating table

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.67.0
    • 0.68.0
    • None
    • None

    Description

      Starting the default ISS adapter and using th postgres sink together with the internal docker container.

      I get following error:

      org.apache.streampipes.commons.exceptions.SpRuntimeException: ERROR: type "double" does not exist
        Position: 56
      

      This happens during creating the table.

      Following create statement is used:

      CREATE TABLE "tabler" ( "timestamp" FLOAT, "longitude" DOUBLE, "latitude" DOUBLE );
      

      but instead of double, float should be used like in timestamp.
      But don't know why double is used only in this case. This happens in the

      statement.append(extractEventProperties(eventProperties))
      

      Method in the JdbcClient.class

      The generel error is:

      org.apache.streampipes.commons.exceptions.SpRuntimeException: ERROR: type "double" does not exist
        Position: 55
      	at org.apache.streampipes.sinks.databases.jvm.jdbcclient.JdbcClient.createTable(JdbcClient.java:446)
      	at org.apache.streampipes.sinks.databases.jvm.jdbcclient.JdbcClient.ensureTableExists(JdbcClient.java:258)
      	at org.apache.streampipes.sinks.databases.jvm.jdbcclient.JdbcClient.connect(JdbcClient.java:212)
      	at org.apache.streampipes.sinks.databases.jvm.jdbcclient.JdbcClient.initializeJdbc(JdbcClient.java:196)
      	at org.apache.streampipes.sinks.databases.jvm.postgresql.PostgreSql.onInvocation(PostgreSql.java:39)
      	at org.apache.streampipes.sinks.databases.jvm.postgresql.PostgreSql.onInvocation(PostgreSql.java:28)
      ...
      

      Attachments

        Issue Links

          Activity

            People

              bossenti Tim Bossenmaier
              micklich Florian Micklich
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: