File tree Expand file tree Collapse file tree 4 files changed +13
-0
lines changed
connectors/postgresql/src
source_manager/src/manager Expand file tree Collapse file tree 4 files changed +13
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @latitude-data/postgresql-connector " : minor
3
+ " @latitude-data/source-manager " : minor
4
+ " @latitude-data/query_result " : minor
5
+ ---
6
+
7
+ Support materializing tables with JSONB fields
Original file line number Diff line number Diff line change @@ -191,6 +191,8 @@ export default class PostgresConnector extends BaseConnector<ConnectionParams> {
191
191
case pgtypes . builtins . TIMESTAMP :
192
192
case pgtypes . builtins . TIMESTAMPTZ :
193
193
return DataType . Datetime
194
+ case pgtypes . builtins . JSONB :
195
+ return DataType . JSONB
194
196
195
197
default :
196
198
return fallbackType
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ export enum DataType {
7
7
Integer = 'integer' ,
8
8
Null = 'null' ,
9
9
String = 'string' ,
10
+ JSONB = 'jsonb' ,
10
11
Unknown = 'unknown' ,
11
12
}
12
13
Original file line number Diff line number Diff line change @@ -41,6 +41,9 @@ function mapDataTypeToParquet(dataType: DataType): ParquetType {
41
41
case DataType . Datetime :
42
42
return ParquetLogicalType . TIMESTAMP_MICROS
43
43
44
+ case DataType . JSONB :
45
+ return ParquetLogicalType . BSON
46
+
44
47
case DataType . Integer :
45
48
// TODO: review this decision.
46
49
// This will make all integers to be stored as INT64 in parquet, making the parquet file
You can’t perform that action at this time.
0 commit comments