-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PostgreSQL sink does not create table when entity id contains special characters #1977
Comments
The limitation should be at least documented. Maybe every sink should have a "Syntax restrictions" section (or a better name :) to describe this kind of things, starting with Postgresqt sink based on this issue. |
This limitation should probably be documented in this project as well as in the getting started guide. Looking at the current encoding this leaves the dash in a weird space, especially because even Unicode seems to be supported in entities id. |
Maybe the authors of that document should change the recommendation to |
It appears that cygnus-ngsi and its PosgreSQL sink can't create a postgres table when the entity has an id that contains the
-
chracter, e.g.urn:ngsi-ld:Motion:001
as recommended in the Fiware tutorials.I setup a simple stack with Orion, an IoT-Agent as well as Cygnus-NGSI and a PostgreSQL database.
However, PostgreSQL reports the error
The error does not occur when a different entity id is used.
Data is then persisted as expected.
Cygnus should replace non-alphanumeric characters in entity ids with
_
, however, that does not appear to be happening.Is this just a bug or do I need some sort of name mapping to solve this?
The text was updated successfully, but these errors were encountered: