Skip to content

Commit

Permalink
fix: integration ksql niscode to int
Browse files Browse the repository at this point in the history
  • Loading branch information
emalfroy committed Dec 12, 2023
1 parent 379ca96 commit ca0b4d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .ksql/INTEGRATIONDB/INTEGRATIONDB_ADDRESS_CONNECTOR.sql
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ CREATE SINK CONNECTOR `AddressIntegrationDbConnector` with (
"db.name"= 'postgres',
"ssl.mode"= 'require',
"insert.mode"= 'UPSERT',
"table.name.format"= 'Integration.Address',
"table.name.format"= 'Integration.Addresses',
"table.types"= 'TABLE',
"db.timezone"= 'UTC',
"pk.mode"= 'record_key',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ SELECT
CAST(REDUCE(SPLIT(URL_EXTRACT_PATH(MESSAGEKEY), '/'), '', (s,x) => x) AS INT) PersistentLocalId,

CAST(GEMEENTE->OBJECTID AS INT) AS "NisCode",
IFNULL(POSTINFO->OBJECTID, '') as "PostalCode",
CAST(IFNULL(STRAATNAAM->OBJECTID, '') AS INT) as "StreetNamePersistentLocalId",
POSTINFO->OBJECTID as "PostalCode",
CAST(STRAATNAAM->OBJECTID AS INT) as "StreetNamePersistentLocalId",
ADRESSTATUS as "Status",
HUISNUMMER as "HouseNumber",
BUSNUMMER as "BoxNumber",
Expand Down

0 comments on commit ca0b4d5

Please sign in to comment.