Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-16774

[fiware-stackoverflow] Postgres Db Table name is encoded using the NGSIToPostgreSQL processor from Fiware Draco

    Details

    • Type: Monitor
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2021
    • Component/s: FIWARE-TECH-HELP
    • Labels:

      Description

      Created question in FIWARE Q/A platform on 09-06-2020 at 09:06
      Please, ANSWER this question AT https://stackoverflow.com/questions/62276979/postgres-db-table-name-is-encoded-using-the-ngsitopostgresql-processor-from-fiwa

      Question:
      Postgres Db Table name is encoded using the NGSIToPostgreSQL processor from Fiware Draco

      Description:
      Context

      We have some data from sensors which is published on Firware Orion. We'd like to visualize the data in the Fiware CKAN Open Data Portal using Fiware Draco. At this moment the Draco (Nifi with NGSI extension) creats a table in the PostGres public namespace with an encoded name. This is an issue because the CKAN portal requires a valid guid as table name.

      Nifi template config

      The image below gives a high lever overview of the flow
      nifi template config
      The update attributes processor configures the id of the resource in the CKAN datastore:
      enter image description here

      The id of the resource in the CKAN db

      A resource created in the CKAN stores some metadata in the CKAN db. The id of this metadata has to be equal to the tablename in the datastore db.
      Which is an issue at the moment because the NGSIToPostgreSQL processor encodes the tablename.

      enter image description here

      I already tried to disable the encoding. This is not a solution because data updates will fail throwing following issue:
      enter image description here

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        20d 22h 25m 1 Andres Muñoz 30/Jun/20 10:31 AM
        In Progress In Progress Answered Answered
        237d 1h 12m 1 Andres Muñoz 22/Feb/21 10:44 AM
        Answered Answered Closed Closed
        1s 1 Andres Muñoz 22/Feb/21 10:44 AM
        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        andres.munoza Andres Muñoz made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        andres.munoza Andres Muñoz made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        Show
        andres.munoza Andres Muñoz added a comment - Answered at https://stackoverflow.com/questions/62276979/postgres-db-table-name-is-encoded-using-the-ngsitopostgresql-processor-from-fiwa
        andres.munoza Andres Muñoz made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        fla Fernando Lopez made changes -
        Assignee Andres Muñoz [ andres.munoza ]
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2020-06-09 12:05|CREATED monitor | # answers= 0, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2020-06-09 12:05|CREATED monitor | # answers= 0, accepted answer= False
        backlogmanager Backlog Manager created issue -

          People

          • Assignee:
            andres.munoza Andres Muñoz
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: