acryl-datahub 1.2.0.10rc5__py3-none-any.whl → 1.2.0.10rc6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of acryl-datahub might be problematic. Click here for more details.
- {acryl_datahub-1.2.0.10rc5.dist-info → acryl_datahub-1.2.0.10rc6.dist-info}/METADATA +2682 -2682
- {acryl_datahub-1.2.0.10rc5.dist-info → acryl_datahub-1.2.0.10rc6.dist-info}/RECORD +8 -8
- datahub/_version.py +1 -1
- datahub/ingestion/source/redshift/query.py +23 -19
- {acryl_datahub-1.2.0.10rc5.dist-info → acryl_datahub-1.2.0.10rc6.dist-info}/WHEEL +0 -0
- {acryl_datahub-1.2.0.10rc5.dist-info → acryl_datahub-1.2.0.10rc6.dist-info}/entry_points.txt +0 -0
- {acryl_datahub-1.2.0.10rc5.dist-info → acryl_datahub-1.2.0.10rc6.dist-info}/licenses/LICENSE +0 -0
- {acryl_datahub-1.2.0.10rc5.dist-info → acryl_datahub-1.2.0.10rc6.dist-info}/top_level.txt +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
acryl_datahub-1.2.0.
|
|
1
|
+
acryl_datahub-1.2.0.10rc6.dist-info/licenses/LICENSE,sha256=9xNHpsD0uYF5ONzXsKDCuHHB-xbiCrSbueWXqrTNsxk,11365
|
|
2
2
|
datahub/__init__.py,sha256=aq_i5lVREmoLfYIqcx_pEQicO855YlhD19tWc1eZZNI,59
|
|
3
3
|
datahub/__main__.py,sha256=pegIvQ9hzK7IhqVeUi1MeADSZ2QlP-D3K0OQdEg55RU,106
|
|
4
|
-
datahub/_version.py,sha256=
|
|
4
|
+
datahub/_version.py,sha256=mSBfn0BVaAuAA6tvKy3C6K9XsxhU7zQ1rYUggP0EN0E,324
|
|
5
5
|
datahub/entrypoints.py,sha256=9Qf-37rNnTzbGlx8S75OCDazIclFp6zWNcCEL1zCZto,9015
|
|
6
6
|
datahub/errors.py,sha256=p5rFAdAGVCk4Lqolol1YvthceadUSwpaCxLXRcyCCFQ,676
|
|
7
7
|
datahub/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -450,7 +450,7 @@ datahub/ingestion/source/redshift/datashares.py,sha256=7G4YoEigZTl-K1aWDw3Jl8s3-
|
|
|
450
450
|
datahub/ingestion/source/redshift/exception.py,sha256=dxzYUIv5B_FAWhOuzG2u5We7FX-ar4jhOXPXAlEIvgM,2055
|
|
451
451
|
datahub/ingestion/source/redshift/lineage.py,sha256=nqrvWJqaI493i1hIZ_7patrdOb16sZrgSSGapdMcEiU,31710
|
|
452
452
|
datahub/ingestion/source/redshift/profile.py,sha256=H1Xtc2rXScUv4w0b2BbM7POjYEwqIql_rpWvlumY_EM,4309
|
|
453
|
-
datahub/ingestion/source/redshift/query.py,sha256=
|
|
453
|
+
datahub/ingestion/source/redshift/query.py,sha256=HKobQ-0crARgT8Mkfe-WBqVR9ZadYCZ9DGaUoEHHHww,48234
|
|
454
454
|
datahub/ingestion/source/redshift/redshift.py,sha256=zalndYg_LK5aJ8cX_ZuXLcTYajtlavmV-dmQIsjGxjg,41260
|
|
455
455
|
datahub/ingestion/source/redshift/redshift_data_reader.py,sha256=zc69jwXHdF-w8J4Hq-ZQ6BjHQ75Ij2iNDMpoRJlcmlU,1724
|
|
456
456
|
datahub/ingestion/source/redshift/redshift_schema.py,sha256=7F-l_omOuKMuGE_rBWXVPG_GWXFKnCMzC4frNxZB9cs,24800
|
|
@@ -1121,8 +1121,8 @@ datahub_provider/operators/datahub_assertion_operator.py,sha256=uvTQ-jk2F0sbqqxp
|
|
|
1121
1121
|
datahub_provider/operators/datahub_assertion_sensor.py,sha256=lCBj_3x1cf5GMNpHdfkpHuyHfVxsm6ff5x2Z5iizcAo,140
|
|
1122
1122
|
datahub_provider/operators/datahub_operation_operator.py,sha256=aevDp2FzX7FxGlXrR0khoHNbxbhKR2qPEX5e8O2Jyzw,174
|
|
1123
1123
|
datahub_provider/operators/datahub_operation_sensor.py,sha256=8fcdVBCEPgqy1etTXgLoiHoJrRt_nzFZQMdSzHqSG7M,168
|
|
1124
|
-
acryl_datahub-1.2.0.
|
|
1125
|
-
acryl_datahub-1.2.0.
|
|
1126
|
-
acryl_datahub-1.2.0.
|
|
1127
|
-
acryl_datahub-1.2.0.
|
|
1128
|
-
acryl_datahub-1.2.0.
|
|
1124
|
+
acryl_datahub-1.2.0.10rc6.dist-info/METADATA,sha256=Ruq1g6waFdCzmx2n0vm2h4XcrOfNZpDVjCxZWoLXPZ0,184162
|
|
1125
|
+
acryl_datahub-1.2.0.10rc6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
1126
|
+
acryl_datahub-1.2.0.10rc6.dist-info/entry_points.txt,sha256=pzsBoTx-D-iTcmpX8oCGCyzlHP2112EygUMzZWz56M8,10105
|
|
1127
|
+
acryl_datahub-1.2.0.10rc6.dist-info/top_level.txt,sha256=iLjSrLK5ox1YVYcglRUkcvfZPvKlobBWx7CTUXx8_GI,25
|
|
1128
|
+
acryl_datahub-1.2.0.10rc6.dist-info/RECORD,,
|
datahub/_version.py
CHANGED
|
@@ -89,7 +89,7 @@ class RedshiftCommonQuery:
|
|
|
89
89
|
) -> str:
|
|
90
90
|
# NOTE: it looks like description is available only in pg_description
|
|
91
91
|
# So this remains preferrred way
|
|
92
|
-
tables_query = """
|
|
92
|
+
tables_query = f"""
|
|
93
93
|
SELECT CASE c.relkind
|
|
94
94
|
WHEN 'r' THEN 'TABLE'
|
|
95
95
|
WHEN 'v' THEN 'VIEW'
|
|
@@ -120,6 +120,7 @@ class RedshiftCommonQuery:
|
|
|
120
120
|
LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
|
|
121
121
|
LEFT JOIN pg_class_info as ci on c.oid = ci.reloid
|
|
122
122
|
LEFT JOIN pg_catalog.pg_description pgd ON pgd.objsubid = 0 AND pgd.objoid = c.oid
|
|
123
|
+
JOIN svv_redshift_schemas rs ON rs.schema_name = n.nspname AND rs.database_name = '{database}'
|
|
123
124
|
WHERE c.relkind IN ('r','v','m','S','f')
|
|
124
125
|
AND n.nspname !~ '^pg_'
|
|
125
126
|
AND n.nspname != 'information_schema'
|
|
@@ -128,23 +129,24 @@ class RedshiftCommonQuery:
|
|
|
128
129
|
external_tables_query = f"""
|
|
129
130
|
SELECT 'EXTERNAL_TABLE' as tabletype,
|
|
130
131
|
NULL AS "schema_oid",
|
|
131
|
-
schemaname AS "schema",
|
|
132
|
+
t.schemaname AS "schema",
|
|
132
133
|
NULL AS "rel_oid",
|
|
133
|
-
tablename AS "relname",
|
|
134
|
+
t.tablename AS "relname",
|
|
134
135
|
NULL as "creation_time",
|
|
135
136
|
NULL AS "diststyle",
|
|
136
137
|
NULL AS "owner_id",
|
|
137
138
|
NULL AS "owner_name",
|
|
138
139
|
NULL AS "view_definition",
|
|
139
140
|
NULL AS "privileges",
|
|
140
|
-
"location",
|
|
141
|
-
parameters,
|
|
142
|
-
input_format,
|
|
143
|
-
output_format,
|
|
144
|
-
serde_parameters,
|
|
141
|
+
t."location",
|
|
142
|
+
t.parameters,
|
|
143
|
+
t.input_format,
|
|
144
|
+
t.output_format,
|
|
145
|
+
t.serde_parameters,
|
|
145
146
|
NULL as table_description
|
|
146
|
-
FROM pg_catalog.svv_external_tables
|
|
147
|
-
|
|
147
|
+
FROM pg_catalog.svv_external_tables t
|
|
148
|
+
JOIN SVV_EXTERNAL_SCHEMAS s ON t.schemaname = s.schemaname
|
|
149
|
+
WHERE t.redshift_database_name='{database}'
|
|
148
150
|
ORDER BY "schema",
|
|
149
151
|
"relname"
|
|
150
152
|
"""
|
|
@@ -232,11 +234,12 @@ class RedshiftCommonQuery:
|
|
|
232
234
|
ON att.attrelid = c.oid
|
|
233
235
|
LEFT JOIN pg_catalog.pg_attrdef ad
|
|
234
236
|
ON (att.attrelid, att.attnum) = (ad.adrelid, ad.adnum)
|
|
237
|
+
JOIN svv_redshift_schemas rs ON rs.schema_name = n.nspname AND rs.database_name = '{database_name}'
|
|
235
238
|
WHERE n.nspname !~ '^pg_'
|
|
236
239
|
AND n.nspname != 'information_schema'
|
|
237
240
|
AND att.attnum > 0
|
|
238
241
|
AND NOT att.attisdropped
|
|
239
|
-
and
|
|
242
|
+
and n.nspname = '{schema_name}'
|
|
240
243
|
UNION
|
|
241
244
|
SELECT
|
|
242
245
|
view_schema as "schema",
|
|
@@ -263,26 +266,27 @@ class RedshiftCommonQuery:
|
|
|
263
266
|
WHERE 1 and schema = '{schema_name}'
|
|
264
267
|
UNION
|
|
265
268
|
SELECT
|
|
266
|
-
schemaname as "schema",
|
|
267
|
-
tablename as "table_name",
|
|
268
|
-
columnname as "name",
|
|
269
|
+
c.schemaname as "schema",
|
|
270
|
+
c.tablename as "table_name",
|
|
271
|
+
c.columnname as "name",
|
|
269
272
|
null as "encode",
|
|
270
273
|
-- Spectrum represents data types differently.
|
|
271
274
|
-- Standardize, so we can infer types.
|
|
272
|
-
external_type AS "type",
|
|
275
|
+
c.external_type AS "type",
|
|
273
276
|
null as "distkey",
|
|
274
277
|
0 as "sortkey",
|
|
275
278
|
null as "notnull",
|
|
276
279
|
null as "comment",
|
|
277
280
|
null as "adsrc",
|
|
278
281
|
null as "attnum",
|
|
279
|
-
external_type AS "format_type",
|
|
282
|
+
c.external_type AS "format_type",
|
|
280
283
|
null as "default",
|
|
281
284
|
null as "schema_oid",
|
|
282
285
|
null as "table_oid"
|
|
283
|
-
FROM SVV_EXTERNAL_COLUMNS
|
|
284
|
-
|
|
285
|
-
|
|
286
|
+
FROM SVV_EXTERNAL_COLUMNS c
|
|
287
|
+
JOIN SVV_EXTERNAL_SCHEMAS s ON c.schemaname = s.schemaname
|
|
288
|
+
WHERE c.schemaname = '{schema_name}'
|
|
289
|
+
AND c.redshift_database_name = '{database_name}'
|
|
286
290
|
ORDER BY "schema", "table_name", "attnum"
|
|
287
291
|
"""
|
|
288
292
|
|
|
File without changes
|
{acryl_datahub-1.2.0.10rc5.dist-info → acryl_datahub-1.2.0.10rc6.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{acryl_datahub-1.2.0.10rc5.dist-info → acryl_datahub-1.2.0.10rc6.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|