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

        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
        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

          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: