Skip to content

Commit

Permalink
fix also other datatypes
Browse files Browse the repository at this point in the history
  • Loading branch information
chicco785 committed Sep 24, 2020
1 parent 9b479fb commit 8dfd648
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/translators/crate.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"Boolean": 'boolean',
# TODO since CRATEDB 4.0 timestamp is deprecated,
# when moving to release 0.8, we will deprecate support for CRATE 3.x
# https://crate.io/docs/crate/reference/en/4.2/appendices/release-notes/4.0.0.html#general
NGSI_ISO8601: 'timestamp',
NGSI_DATETIME: 'timestamp',
"Integer": 'long',
Expand Down Expand Up @@ -68,6 +69,9 @@ def setup(self):
NGSI_TO_SQL[NGSI_ISO8601] = 'timestamptz'
NGSI_TO_SQL[NGSI_DATETIME] = 'timestamptz'
NGSI_TO_SQL[TIME_INDEX] = 'timestamptz'
NGSI_TO_SQL["Integer"] = 'bigint'
NGSI_TO_SQL["Number"] = 'real'
NGSI_TO_SQL[NGSI_TEXT] = 'text'


def dispose(self):
Expand Down

0 comments on commit 8dfd648

Please sign in to comment.