dataforge-core 1.5.0__tar.gz → 1.5.2__tar.gz
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.
- {dataforge_core-1.5.0/cli/dataforge_core.egg-info → dataforge_core-1.5.2}/PKG-INFO +1 -1
- {dataforge_core-1.5.0 → dataforge_core-1.5.2}/cli/dataforge/resources/pg_deploy.sql +24 -42
- {dataforge_core-1.5.0 → dataforge_core-1.5.2/cli/dataforge_core.egg-info}/PKG-INFO +1 -1
- {dataforge_core-1.5.0 → dataforge_core-1.5.2}/pyproject.toml +1 -1
- {dataforge_core-1.5.0 → dataforge_core-1.5.2}/LICENSE +0 -0
- {dataforge_core-1.5.0 → dataforge_core-1.5.2}/MANIFEST.in +0 -0
- {dataforge_core-1.5.0 → dataforge_core-1.5.2}/README.md +0 -0
- {dataforge_core-1.5.0 → dataforge_core-1.5.2}/cli/dataforge/__init__.py +0 -0
- {dataforge_core-1.5.0 → dataforge_core-1.5.2}/cli/dataforge/databricks_sql.py +0 -0
- {dataforge_core-1.5.0 → dataforge_core-1.5.2}/cli/dataforge/importProject.py +0 -0
- {dataforge_core-1.5.0 → dataforge_core-1.5.2}/cli/dataforge/main.py +0 -0
- {dataforge_core-1.5.0 → dataforge_core-1.5.2}/cli/dataforge/mainConfig.py +0 -0
- {dataforge_core-1.5.0 → dataforge_core-1.5.2}/cli/dataforge/miniSparky.py +0 -0
- {dataforge_core-1.5.0 → dataforge_core-1.5.2}/cli/dataforge/pg.py +0 -0
- {dataforge_core-1.5.0 → dataforge_core-1.5.2}/cli/dataforge/resources/log4j2.properties +0 -0
- {dataforge_core-1.5.0 → dataforge_core-1.5.2}/cli/dataforge/resources/project/meta.yaml +0 -0
- {dataforge_core-1.5.0 → dataforge_core-1.5.2}/cli/dataforge/resources/project/outputs/feature_customer.yaml +0 -0
- {dataforge_core-1.5.0 → dataforge_core-1.5.2}/cli/dataforge/resources/project/relations.yaml +0 -0
- {dataforge_core-1.5.0 → dataforge_core-1.5.2}/cli/dataforge/resources/project/sources/tpch_customer.yaml +0 -0
- {dataforge_core-1.5.0 → dataforge_core-1.5.2}/cli/dataforge/resources/project/sources/tpch_lineitem.yaml +0 -0
- {dataforge_core-1.5.0 → dataforge_core-1.5.2}/cli/dataforge/resources/project/sources/tpch_nations.yaml +0 -0
- {dataforge_core-1.5.0 → dataforge_core-1.5.2}/cli/dataforge/resources/project/sources/tpch_orders.yaml +0 -0
- {dataforge_core-1.5.0 → dataforge_core-1.5.2}/cli/dataforge/resources/project/sources/tpch_part.yaml +0 -0
- {dataforge_core-1.5.0 → dataforge_core-1.5.2}/cli/dataforge/resources/project/sources/tpch_partsupp.yaml +0 -0
- {dataforge_core-1.5.0 → dataforge_core-1.5.2}/cli/dataforge/resources/project/sources/tpch_region.yaml +0 -0
- {dataforge_core-1.5.0 → dataforge_core-1.5.2}/cli/dataforge/resources/project/sources/tpch_supplier.yaml +0 -0
- {dataforge_core-1.5.0 → dataforge_core-1.5.2}/cli/dataforge/util.py +0 -0
- {dataforge_core-1.5.0 → dataforge_core-1.5.2}/cli/dataforge_core.egg-info/SOURCES.txt +0 -0
- {dataforge_core-1.5.0 → dataforge_core-1.5.2}/cli/dataforge_core.egg-info/dependency_links.txt +0 -0
- {dataforge_core-1.5.0 → dataforge_core-1.5.2}/cli/dataforge_core.egg-info/entry_points.txt +0 -0
- {dataforge_core-1.5.0 → dataforge_core-1.5.2}/cli/dataforge_core.egg-info/requires.txt +0 -0
- {dataforge_core-1.5.0 → dataforge_core-1.5.2}/cli/dataforge_core.egg-info/top_level.txt +0 -0
- {dataforge_core-1.5.0 → dataforge_core-1.5.2}/setup.cfg +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
--Built: Wed
|
|
1
|
+
--Built: Wed Apr 15 20:44:43 UTC 2026
|
|
2
2
|
CREATE SCHEMA IF NOT EXISTS meta;
|
|
3
3
|
CREATE SCHEMA IF NOT EXISTS log;
|
|
4
4
|
DO $$
|
|
@@ -463,7 +463,8 @@ CREATE INDEX IF NOT EXISTS ix_enrichment_aggregation_enrichment_id
|
|
|
463
463
|
|
|
464
464
|
|
|
465
465
|
|
|
466
|
-
|
|
466
|
+
CREATE INDEX IF NOT EXISTS ix_enrichment_parameter_parent_enrichment_id
|
|
467
|
+
ON meta.enrichment_parameter (parent_enrichment_id);DROP TABLE IF EXISTS meta.query_element CASCADE;
|
|
467
468
|
|
|
468
469
|
CREATE TABLE meta.query_element (
|
|
469
470
|
id int PRIMARY KEY GENERATED ALWAYS AS IDENTITY ,
|
|
@@ -1954,7 +1955,7 @@ BEGIN
|
|
|
1954
1955
|
UNION ALL
|
|
1955
1956
|
SELECT 'system', system_attribute_id
|
|
1956
1957
|
FROM meta.system_attribute s
|
|
1957
|
-
WHERE s.table_type @> ARRAY['
|
|
1958
|
+
WHERE s.table_type @> ARRAY['ingot'] AND s.name = in_name
|
|
1958
1959
|
UNION ALL
|
|
1959
1960
|
SELECT 'enrichment', enrichment_id
|
|
1960
1961
|
FROM meta.enrichment e
|
|
@@ -2817,22 +2818,15 @@ END;
|
|
|
2817
2818
|
|
|
2818
2819
|
$function$;CREATE OR REPLACE FUNCTION meta.u_add_backticks(in_column text)
|
|
2819
2820
|
RETURNS TEXT
|
|
2820
|
-
LANGUAGE
|
|
2821
|
+
LANGUAGE sql
|
|
2821
2822
|
AS
|
|
2822
2823
|
$function$
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
BEGIN
|
|
2827
|
-
|
|
2828
|
-
IF in_column !~ ('^[a-zA-Z_]+[a-zA-Z0-9_]*$') THEN
|
|
2829
|
-
RETURN '`' || in_column || '`';
|
|
2830
|
-
ELSE
|
|
2831
|
-
RETURN in_column;
|
|
2832
|
-
END IF;
|
|
2833
|
-
|
|
2824
|
+
SELECT CASE
|
|
2825
|
+
WHEN in_column !~ '^[a-zA-Z_]+[a-zA-Z0-9_]*$' THEN '`' || in_column || '`'
|
|
2826
|
+
ELSE in_column
|
|
2834
2827
|
END;
|
|
2835
|
-
$function
|
|
2828
|
+
$function$;
|
|
2829
|
+
-- creates single column select expression for the output query
|
|
2836
2830
|
CREATE OR REPLACE FUNCTION meta.u_add_backticks_output_column(in_output_column text)
|
|
2837
2831
|
RETURNS TEXT
|
|
2838
2832
|
LANGUAGE plpgsql
|
|
@@ -2907,7 +2901,6 @@ END;
|
|
|
2907
2901
|
$function$;CREATE OR REPLACE FUNCTION meta.u_assert(in_assert_boolean boolean, in_message text)
|
|
2908
2902
|
RETURNS void
|
|
2909
2903
|
LANGUAGE plpgsql
|
|
2910
|
-
COST 100
|
|
2911
2904
|
AS $function$
|
|
2912
2905
|
BEGIN
|
|
2913
2906
|
IF NOT COALESCE(in_assert_boolean,false) THEN
|
|
@@ -4009,15 +4002,9 @@ END;
|
|
|
4009
4002
|
$function$;
|
|
4010
4003
|
CREATE OR REPLACE FUNCTION meta.u_get_source_project(in_source_id int)
|
|
4011
4004
|
RETURNS int
|
|
4012
|
-
LANGUAGE
|
|
4013
|
-
COST 10
|
|
4005
|
+
LANGUAGE sql
|
|
4014
4006
|
AS $function$
|
|
4015
|
-
|
|
4016
|
-
BEGIN
|
|
4017
|
-
|
|
4018
|
-
RETURN (SELECT project_id FROM meta.source WHERE source_id = in_source_id);
|
|
4019
|
-
END;
|
|
4020
|
-
|
|
4007
|
+
SELECT project_id FROM meta.source WHERE source_id = in_source_id;
|
|
4021
4008
|
$function$;
|
|
4022
4009
|
|
|
4023
4010
|
CREATE OR REPLACE FUNCTION meta.u_get_source_table_name(in_source_id int)
|
|
@@ -4280,20 +4267,14 @@ END;
|
|
|
4280
4267
|
$function$;
|
|
4281
4268
|
CREATE OR REPLACE FUNCTION meta.u_json_array_to_int_array(in_parameters json)
|
|
4282
4269
|
RETURNS int[]
|
|
4283
|
-
LANGUAGE
|
|
4270
|
+
LANGUAGE sql
|
|
4284
4271
|
AS $function$
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
RETURN v_ret;
|
|
4292
|
-
END IF;
|
|
4293
|
-
|
|
4294
|
-
RETURN null;
|
|
4295
|
-
|
|
4296
|
-
END;
|
|
4272
|
+
SELECT CASE
|
|
4273
|
+
WHEN in_parameters::jsonb IS DISTINCT FROM 'null'::jsonb THEN (
|
|
4274
|
+
SELECT array_agg(t::int) FROM json_array_elements_text(in_parameters) t
|
|
4275
|
+
)
|
|
4276
|
+
ELSE NULL::int[]
|
|
4277
|
+
END;
|
|
4297
4278
|
$function$;
|
|
4298
4279
|
|
|
4299
4280
|
CREATE OR REPLACE FUNCTION meta.u_lookup_source_attribute(in_source_id int, in_attribute_name text, in_test_source_id int = null)
|
|
@@ -4333,7 +4314,7 @@ BEGIN
|
|
|
4333
4314
|
INTO v_ret.name, v_ret.system_attribute_id, v_ret.datatype, v_ret.unique_flag
|
|
4334
4315
|
FROM meta.system_attribute s
|
|
4335
4316
|
JOIN meta.source src ON src.source_id = in_source_id AND
|
|
4336
|
-
s.refresh_type @> ARRAY[src.refresh_type] AND s.table_type @> ARRAY['
|
|
4317
|
+
s.refresh_type @> ARRAY[src.refresh_type] AND s.table_type @> ARRAY['ingot']
|
|
4337
4318
|
WHERE s.name = v_attribute_name_substituted;
|
|
4338
4319
|
|
|
4339
4320
|
IF v_ret.system_attribute_id IS NOT NULL THEN
|
|
@@ -5156,7 +5137,8 @@ IF in_output.output_sub_type = 'text' AND (SELECT count(1) FROM meta.output_colu
|
|
|
5156
5137
|
RETURN 'Text outputs can only have a single output column! Please remove excess columns or choose another output file type.';
|
|
5157
5138
|
END IF;
|
|
5158
5139
|
|
|
5159
|
-
IF (in_output.output_type = 'file' AND (in_output.output_sub_type = 'parquet' OR in_output.output_sub_type = 'avro'))
|
|
5140
|
+
IF (in_output.output_type = 'file' AND (in_output.output_sub_type = 'parquet' OR in_output.output_sub_type = 'avro'))
|
|
5141
|
+
OR (in_output.output_type = 'table' AND in_output.output_sub_type = 'bigquery')
|
|
5160
5142
|
THEN
|
|
5161
5143
|
SELECT string_agg(oc.name,',') INTO v_bad_columns
|
|
5162
5144
|
FROM meta.output_column oc WHERE in_output.output_id = oc.output_id AND oc.name !~ ('^[a-zA-Z_]+[a-zA-Z0-9_]*$');
|
|
@@ -5175,14 +5157,14 @@ END IF;
|
|
|
5175
5157
|
|
|
5176
5158
|
IF in_output.output_type = 'virtual' AND in_output.active_flag THEN
|
|
5177
5159
|
SELECT json_build_object('output_name', o.output_name, 'project_name', p.name,
|
|
5178
|
-
'view_name',in_output.output_package_parameters->>'view_name', '
|
|
5160
|
+
'view_name',in_output.output_package_parameters->>'view_name', 'view_schema', COALESCE(in_output.output_package_parameters->>'view_schema',ip.schema_name) )
|
|
5179
5161
|
INTO v_error
|
|
5180
5162
|
FROM meta.output o
|
|
5181
5163
|
JOIN meta.project p ON o.project_id = p.project_id
|
|
5182
5164
|
JOIN meta.project ip ON in_output.project_id = ip.project_id
|
|
5183
5165
|
WHERE o.output_type = in_output.output_type
|
|
5184
5166
|
AND o.output_package_parameters->>'view_name' = in_output.output_package_parameters->>'view_name'
|
|
5185
|
-
AND COALESCE(o.output_package_parameters->>'
|
|
5167
|
+
AND COALESCE(o.output_package_parameters->>'view_schema',p.schema_name) = COALESCE(in_output.output_package_parameters->>'view_schema',ip.schema_name)
|
|
5186
5168
|
AND output_id IS DISTINCT FROM in_output.output_id
|
|
5187
5169
|
AND o.active_flag;
|
|
5188
5170
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dataforge_core-1.5.0 → dataforge_core-1.5.2}/cli/dataforge/resources/project/relations.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dataforge_core-1.5.0 → dataforge_core-1.5.2}/cli/dataforge/resources/project/sources/tpch_part.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dataforge_core-1.5.0 → dataforge_core-1.5.2}/cli/dataforge_core.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|