mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-25 18:38:55 +00:00
fix(ingest): redshift - mapping for spectrum external array types (#3890)
This commit is contained in:
parent
e95446be1c
commit
2daa06a58f
@ -273,6 +273,7 @@ def _get_schema_column_info(self, connection, schema=None, **kw):
|
||||
CASE
|
||||
WHEN external_type = 'int' THEN 'integer'
|
||||
ELSE
|
||||
regexp_replace(
|
||||
replace(
|
||||
replace(
|
||||
replace(
|
||||
@ -283,7 +284,8 @@ def _get_schema_column_info(self, connection, schema=None, **kw):
|
||||
'string', 'character varying'),
|
||||
'char(', 'character('),
|
||||
'float', 'real'),
|
||||
'double', 'float')
|
||||
'double', 'float'),
|
||||
'^array<(.*)>$', '$1[]', 1, 'p')
|
||||
END AS "type",
|
||||
null as "distkey",
|
||||
0 as "sortkey",
|
||||
@ -294,6 +296,7 @@ def _get_schema_column_info(self, connection, schema=None, **kw):
|
||||
CASE
|
||||
WHEN external_type = 'int' THEN 'integer'
|
||||
ELSE
|
||||
regexp_replace(
|
||||
replace(
|
||||
replace(
|
||||
replace(
|
||||
@ -304,7 +307,8 @@ def _get_schema_column_info(self, connection, schema=None, **kw):
|
||||
'string', 'character varying'),
|
||||
'char(', 'character('),
|
||||
'float', 'real'),
|
||||
'double', 'float')
|
||||
'double', 'float'),
|
||||
'^array<(.*)>$', '$1[]', 1, 'p')
|
||||
END AS "format_type",
|
||||
null as "default",
|
||||
null as "schema_oid",
|
||||
|
Loading…
x
Reference in New Issue
Block a user