castor-extractor 0.21.5__py3-none-any.whl → 0.21.7__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 castor-extractor might be problematic. Click here for more details.
- CHANGELOG.md +12 -0
- castor_extractor/visualization/metabase/client/db/queries/card.sql +2 -19
- castor_extractor/visualization/metabase/client/db/queries/dashboard.sql +2 -19
- castor_extractor/warehouse/redshift/queries/column.sql +3 -3
- {castor_extractor-0.21.5.dist-info → castor_extractor-0.21.7.dist-info}/METADATA +14 -2
- {castor_extractor-0.21.5.dist-info → castor_extractor-0.21.7.dist-info}/RECORD +9 -9
- {castor_extractor-0.21.5.dist-info → castor_extractor-0.21.7.dist-info}/LICENCE +0 -0
- {castor_extractor-0.21.5.dist-info → castor_extractor-0.21.7.dist-info}/WHEEL +0 -0
- {castor_extractor-0.21.5.dist-info → castor_extractor-0.21.7.dist-info}/entry_points.txt +0 -0
CHANGELOG.md
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
|
|
2
2
|
# Changelog
|
|
3
3
|
|
|
4
|
+
## 0.21.8 - 2024-11-26
|
|
5
|
+
|
|
6
|
+
* Redshift: improve deduplication of columns
|
|
7
|
+
|
|
8
|
+
## 0.21.7 - 2024-11-26
|
|
9
|
+
|
|
10
|
+
* Metabase: stop using deprecated table `view_log`
|
|
11
|
+
|
|
12
|
+
## 0.21.6 - 2024-11-22
|
|
13
|
+
|
|
14
|
+
* bump dependencies: ruff, setuptools
|
|
15
|
+
|
|
4
16
|
## 0.21.5 - 2024-11-20
|
|
5
17
|
|
|
6
18
|
* PostgreSQL: Fix schema extraction when owner is a role without login privilege
|
|
@@ -1,21 +1,4 @@
|
|
|
1
|
-
WITH card_view_log AS
|
|
2
|
-
(
|
|
3
|
-
SELECT
|
|
4
|
-
model_id,
|
|
5
|
-
COUNT(id) AS view_count,
|
|
6
|
-
MAX("timestamp") AS last_viewed_at
|
|
7
|
-
FROM
|
|
8
|
-
{schema}.view_log
|
|
9
|
-
WHERE
|
|
10
|
-
model = 'card'
|
|
11
|
-
GROUP BY
|
|
12
|
-
1
|
|
13
|
-
)
|
|
14
|
-
|
|
15
1
|
SELECT
|
|
16
|
-
|
|
17
|
-
vl.last_viewed_at AS last_viewed_at,
|
|
18
|
-
COALESCE(vl.view_count, 0) AS view_count
|
|
2
|
+
*
|
|
19
3
|
FROM
|
|
20
|
-
{schema}.report_card
|
|
21
|
-
LEFT JOIN card_view_log AS vl ON rc.id = vl.model_id
|
|
4
|
+
{schema}.report_card
|
|
@@ -1,21 +1,4 @@
|
|
|
1
|
-
WITH dashboard_view_log AS
|
|
2
|
-
(
|
|
3
|
-
SELECT
|
|
4
|
-
model_id,
|
|
5
|
-
COUNT(id) AS view_count,
|
|
6
|
-
MAX("timestamp") AS last_viewed_at
|
|
7
|
-
FROM
|
|
8
|
-
{schema}.view_log
|
|
9
|
-
WHERE
|
|
10
|
-
model = 'dashboard'
|
|
11
|
-
GROUP BY
|
|
12
|
-
1
|
|
13
|
-
)
|
|
14
|
-
|
|
15
1
|
SELECT
|
|
16
|
-
|
|
17
|
-
vl.last_viewed_at AS last_viewed_at,
|
|
18
|
-
COALESCE(vl.view_count, 0) AS view_count
|
|
2
|
+
*
|
|
19
3
|
FROM
|
|
20
|
-
{schema}.report_dashboard
|
|
21
|
-
LEFT JOIN dashboard_view_log AS vl ON rd.id = vl.model_id
|
|
4
|
+
{schema}.report_dashboard
|
|
@@ -155,9 +155,9 @@ external_columns AS (
|
|
|
155
155
|
db.datname || '.' || s.schemaname || '.' || c.tablename AS table_id,
|
|
156
156
|
c.columnname AS column_name,
|
|
157
157
|
db.datname || '.' || s.schemaname || '.' || c.tablename || '.' || c.columnname AS column_id,
|
|
158
|
-
c.external_type AS data_type,
|
|
158
|
+
MIN(c.external_type) AS data_type,
|
|
159
159
|
MIN(c.columnnum) AS ordinal_position,
|
|
160
|
-
CASE c.is_nullable WHEN 'false' THEN 'NO' ELSE 'YES' END AS is_nullable,
|
|
160
|
+
MIN(CASE c.is_nullable WHEN 'false' THEN 'NO' ELSE 'YES' END) AS is_nullable,
|
|
161
161
|
NULL AS character_maximum_length,
|
|
162
162
|
NULL AS character_octet_length,
|
|
163
163
|
NULL AS numeric_precision,
|
|
@@ -172,7 +172,7 @@ external_columns AS (
|
|
|
172
172
|
JOIN pg_catalog.pg_database AS db ON CURRENT_DATABASE() = db.datname
|
|
173
173
|
|
|
174
174
|
-- To remove duplicate column names that can occur in external tables (no check on CSVs)
|
|
175
|
-
GROUP BY database_name, database_id, schema_name, schema_id, table_name, table_id, column_name, column_id
|
|
175
|
+
GROUP BY database_name, database_id, schema_name, schema_id, table_name, table_id, column_name, column_id
|
|
176
176
|
)
|
|
177
177
|
|
|
178
178
|
SELECT * FROM tables
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: castor-extractor
|
|
3
|
-
Version: 0.21.
|
|
3
|
+
Version: 0.21.7
|
|
4
4
|
Summary: Extract your metadata assets.
|
|
5
5
|
Home-page: https://www.castordoc.com/
|
|
6
6
|
License: EULA
|
|
@@ -52,7 +52,7 @@ Requires-Dist: pymssql (>=2.2.11,<3.0.0) ; extra == "sqlserver" or extra == "all
|
|
|
52
52
|
Requires-Dist: pymysql[rsa] (>=1.1.0,<2.0.0) ; extra == "mysql" or extra == "all"
|
|
53
53
|
Requires-Dist: python-dateutil (>=2.0.0,<=3.0.0)
|
|
54
54
|
Requires-Dist: requests (>=2.0.0,<3.0.0)
|
|
55
|
-
Requires-Dist: setuptools (>=
|
|
55
|
+
Requires-Dist: setuptools (>=75.3.0,<75.4.0)
|
|
56
56
|
Requires-Dist: snowflake-connector-python (>=3.4.0,<4.0.0) ; extra == "snowflake" or extra == "all"
|
|
57
57
|
Requires-Dist: snowflake-sqlalchemy (!=1.2.5,<2.0.0) ; extra == "snowflake" or extra == "all"
|
|
58
58
|
Requires-Dist: sqlalchemy (>=1.4,<1.5)
|
|
@@ -208,6 +208,18 @@ For any questions or bug report, contact us at [support@castordoc.com](mailto:su
|
|
|
208
208
|
|
|
209
209
|
# Changelog
|
|
210
210
|
|
|
211
|
+
## 0.21.8 - 2024-11-26
|
|
212
|
+
|
|
213
|
+
* Redshift: improve deduplication of columns
|
|
214
|
+
|
|
215
|
+
## 0.21.7 - 2024-11-26
|
|
216
|
+
|
|
217
|
+
* Metabase: stop using deprecated table `view_log`
|
|
218
|
+
|
|
219
|
+
## 0.21.6 - 2024-11-22
|
|
220
|
+
|
|
221
|
+
* bump dependencies: ruff, setuptools
|
|
222
|
+
|
|
211
223
|
## 0.21.5 - 2024-11-20
|
|
212
224
|
|
|
213
225
|
* PostgreSQL: Fix schema extraction when owner is a role without login privilege
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
CHANGELOG.md,sha256=
|
|
1
|
+
CHANGELOG.md,sha256=HIo_bRiTbT5GZ6Hugs5Y1gHIHSsfh1VDVWXhoC_SXWM,14881
|
|
2
2
|
Dockerfile,sha256=xQ05-CFfGShT3oUqaiumaldwA288dj9Yb_pxofQpufg,301
|
|
3
3
|
DockerfileUsage.md,sha256=2hkJQF-5JuuzfPZ7IOxgM6QgIQW7l-9oRMFVwyXC4gE,998
|
|
4
4
|
LICENCE,sha256=sL-IGa4hweyya1HgzMskrRdybbIa2cktzxb5qmUgDg8,8254
|
|
@@ -180,9 +180,9 @@ castor_extractor/visualization/metabase/client/db/client.py,sha256=s38mubBaun4Lf
|
|
|
180
180
|
castor_extractor/visualization/metabase/client/db/credentials.py,sha256=rhA6rM7QMTBSpF4BknYXz2VqujFcWAdx5TPR4kmdPy4,918
|
|
181
181
|
castor_extractor/visualization/metabase/client/db/queries/.sqlfluff,sha256=sOQQOpAa9QMj9cBlulfmt-DZ_kQzMpzSAEnh10QGSB0,76
|
|
182
182
|
castor_extractor/visualization/metabase/client/db/queries/base_url.sql,sha256=p2EL9kdt-hw_yh3aeCE91AXEB4RrYAbG2QrBBNqQjDE,79
|
|
183
|
-
castor_extractor/visualization/metabase/client/db/queries/card.sql,sha256=
|
|
183
|
+
castor_extractor/visualization/metabase/client/db/queries/card.sql,sha256=ORzsXqskth9708NO2Wq7G7w3e0SfHi1u9HgerYmXvg4,43
|
|
184
184
|
castor_extractor/visualization/metabase/client/db/queries/collection.sql,sha256=PstkeFOU2dB-DV0ND-gR-NCDOsWG__3veAbGypbd0UI,42
|
|
185
|
-
castor_extractor/visualization/metabase/client/db/queries/dashboard.sql,sha256=
|
|
185
|
+
castor_extractor/visualization/metabase/client/db/queries/dashboard.sql,sha256=oBhBvRw4PWX1OMxHdrIY4K3ufLb3IdOEj8PmegNjahw,48
|
|
186
186
|
castor_extractor/visualization/metabase/client/db/queries/dashboard_cards.sql,sha256=OMPeayxPoVHTCR0hb7dLxD2JqDuY8Of6MQzOABMWqc8,52
|
|
187
187
|
castor_extractor/visualization/metabase/client/db/queries/database.sql,sha256=Kx6d_odO9Ns_3991_WH8eB8jbdBCIBbskLm1MpMdTkM,49
|
|
188
188
|
castor_extractor/visualization/metabase/client/db/queries/table.sql,sha256=cCO8YjB8svDqaCW8pIHfM5hw0wugMTCYz1l9Fyiuq4c,46
|
|
@@ -375,7 +375,7 @@ castor_extractor/warehouse/redshift/client_test.py,sha256=74lZfna71qs80EKAuitJ8_
|
|
|
375
375
|
castor_extractor/warehouse/redshift/extract.py,sha256=pblUQ2XafVTpyHrDLrmwFKy55mUNF03dZvgPweihYUc,2723
|
|
376
376
|
castor_extractor/warehouse/redshift/extract_test.py,sha256=-8eWOsFEv4DFvBmalaE_TzQD6YdgwnGRPCkKsycJuxg,653
|
|
377
377
|
castor_extractor/warehouse/redshift/queries/.sqlfluff,sha256=W4pFQiY8KMtXwn3WguYQJA8cj78VR7K-iokPoZoy5aM,30
|
|
378
|
-
castor_extractor/warehouse/redshift/queries/column.sql,sha256=
|
|
378
|
+
castor_extractor/warehouse/redshift/queries/column.sql,sha256=6Y2WDTQXy3JRr42yr01p2NW2d8fDLsGzIzBb8Rp6NKk,6826
|
|
379
379
|
castor_extractor/warehouse/redshift/queries/database.sql,sha256=_C0knW159YDfReGuWLjIdvxHzefo1Xg2xw2dJKJzNk8,299
|
|
380
380
|
castor_extractor/warehouse/redshift/queries/group.sql,sha256=8p0wlqllnwOTiAgiV237DvFYHGOEcYwaHdyqVQg3F6E,101
|
|
381
381
|
castor_extractor/warehouse/redshift/queries/query.sql,sha256=yZNGnUdebvvDx0J0KMSJ2hNgkK4gPduyOfPM_7-DIfo,3465
|
|
@@ -425,8 +425,8 @@ castor_extractor/warehouse/sqlserver/queries/table.sql,sha256=kbBQP-TdG5px1IVgyx
|
|
|
425
425
|
castor_extractor/warehouse/sqlserver/queries/user.sql,sha256=gOrZsMVypusR2dc4vwVs4E1a-CliRsr_UjnD2EbXs-A,94
|
|
426
426
|
castor_extractor/warehouse/sqlserver/query.py,sha256=j_d5-HMnzBouwGfywVZMRSSwbXzPvzDWlFCZmvxcoGQ,539
|
|
427
427
|
castor_extractor/warehouse/synapse/queries/column.sql,sha256=lNcFoIW3Y0PFOqoOzJEXmPvZvfAsY0AP63Mu2LuPzPo,1351
|
|
428
|
-
castor_extractor-0.21.
|
|
429
|
-
castor_extractor-0.21.
|
|
430
|
-
castor_extractor-0.21.
|
|
431
|
-
castor_extractor-0.21.
|
|
432
|
-
castor_extractor-0.21.
|
|
428
|
+
castor_extractor-0.21.7.dist-info/LICENCE,sha256=sL-IGa4hweyya1HgzMskrRdybbIa2cktzxb5qmUgDg8,8254
|
|
429
|
+
castor_extractor-0.21.7.dist-info/METADATA,sha256=-vrBbF2Ipl1Ar3SwUthFTrDdvjod8IXzEzP2Sb-TuWg,22109
|
|
430
|
+
castor_extractor-0.21.7.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
431
|
+
castor_extractor-0.21.7.dist-info/entry_points.txt,sha256=7aVSxc-_2dicp28Ow-S4y0p4wGoTm9zGmVptMvfLdw8,1649
|
|
432
|
+
castor_extractor-0.21.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|