@@ -178,6 +178,7 @@ def sdk_typing_object(
178
178
| th .DateType
179
179
| th .StringType
180
180
| th .BooleanType
181
+ | th .CustomType
181
182
):
182
183
"""Return the JSON Schema dict that describes the sql type.
183
184
@@ -209,14 +210,15 @@ def sdk_typing_object(
209
210
| th .IntegerType
210
211
| th .DateType
211
212
| th .StringType
212
- | th .BooleanType ,
213
+ | th .BooleanType
214
+ | th .CustomType ,
213
215
] = {
214
- "jsonb" : th .CustomType ({
215
- "type" : ["string" , "number" , "integer" , "array" , "object" , "boolean" ]
216
- } ),
217
- "json" : th .CustomType ({
218
- "type" : ["string" , "number" , "integer" , "array" , "object" , "boolean" ]
219
- } ),
216
+ "jsonb" : th .CustomType (
217
+ { "type" : ["string" , "number" , "integer" , "array" , "object" , "boolean" ]}
218
+ ),
219
+ "json" : th .CustomType (
220
+ { "type" : ["string" , "number" , "integer" , "array" , "object" , "boolean" ]}
221
+ ),
220
222
"timestamp" : th .DateTimeType (),
221
223
"datetime" : th .DateTimeType (),
222
224
"date" : th .DateType (),
@@ -475,11 +477,13 @@ def consume(self, message) -> dict | None:
475
477
elif message_payload ["action" ] in delete_actions :
476
478
for column in message_payload ["identity" ]:
477
479
row .update ({column ["name" ]: column ["value" ]})
478
- row .update ({
479
- "_sdc_deleted_at" : datetime .datetime .utcnow ().strftime (
480
- r"%Y-%m-%dT%H:%M:%SZ"
481
- )
482
- })
480
+ row .update (
481
+ {
482
+ "_sdc_deleted_at" : datetime .datetime .utcnow ().strftime (
483
+ r"%Y-%m-%dT%H:%M:%SZ"
484
+ )
485
+ }
486
+ )
483
487
row .update ({"_sdc_lsn" : message .data_start })
484
488
elif message_payload ["action" ] in truncate_actions :
485
489
self .logger .debug (
0 commit comments