dasl-client 1.0.7__py3-none-any.whl → 1.0.9__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 dasl-client might be problematic. Click here for more details.
- dasl_client/client.py +10 -8
- dasl_client/preset_development/__init__.py +4 -0
- dasl_client/preset_development/errors.py +159 -0
- dasl_client/preset_development/preview_engine.py +344 -0
- dasl_client/preset_development/preview_parameters.py +386 -0
- dasl_client/preset_development/stage.py +559 -0
- dasl_client/types/admin_config.py +10 -7
- dasl_client/types/datasource.py +177 -138
- dasl_client/types/dbui.py +46 -34
- dasl_client/types/rule.py +91 -65
- dasl_client/types/types.py +67 -54
- dasl_client/types/workspace_config.py +86 -74
- {dasl_client-1.0.7.dist-info → dasl_client-1.0.9.dist-info}/METADATA +2 -1
- dasl_client-1.0.9.dist-info/RECORD +28 -0
- dasl_client-1.0.7.dist-info/RECORD +0 -23
- {dasl_client-1.0.7.dist-info → dasl_client-1.0.9.dist-info}/LICENSE +0 -0
- {dasl_client-1.0.7.dist-info → dasl_client-1.0.9.dist-info}/WHEEL +0 -0
- {dasl_client-1.0.7.dist-info → dasl_client-1.0.9.dist-info}/top_level.txt +0 -0
dasl_client/types/datasource.py
CHANGED
|
@@ -44,24 +44,28 @@ class FieldSpec(BaseModel):
|
|
|
44
44
|
|
|
45
45
|
Attributes:
|
|
46
46
|
name (Optional[str]):
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
47
|
+
The name of the field.
|
|
48
|
+
comment (Optional[str]):
|
|
49
|
+
The comment to apply to the field.
|
|
50
|
+
var_assert (Optional[List[FieldSpec.Assert]]):
|
|
51
|
+
A list of SQL expressions that must evaluate to true for every
|
|
52
|
+
processed row. If the assertion is false, an operational alert
|
|
53
|
+
is raised using 'message' for each row.
|
|
54
|
+
var_from (Optional[str]):
|
|
55
|
+
This field obtains its value from the source column of this name.
|
|
56
|
+
Use this to bring in a column from some upstream table.
|
|
57
|
+
alias (Optional[str]):
|
|
58
|
+
This field obtains its value from the destination (transformed)
|
|
59
|
+
column of this name. Use this to alias a column from within the
|
|
60
|
+
same table (ie. silver table). You cannot alias a column from
|
|
61
|
+
some upstream table.
|
|
62
|
+
expr (Optional[str]):
|
|
63
|
+
This field obtains its value from the given SQL expression.
|
|
64
|
+
literal (Optional[str]):
|
|
65
|
+
This field obtains its value from the given literal string. For
|
|
66
|
+
other data types, use expr.
|
|
67
|
+
join (Optional[FieldSpec.Join]):
|
|
68
|
+
This field obtains its value from joining to another table.
|
|
65
69
|
"""
|
|
66
70
|
|
|
67
71
|
class Assert(BaseModel):
|
|
@@ -69,10 +73,12 @@ class FieldSpec(BaseModel):
|
|
|
69
73
|
An assertion within a FieldSpec.
|
|
70
74
|
|
|
71
75
|
Attributes:
|
|
72
|
-
expr (Optional[str]):
|
|
73
|
-
true for every
|
|
74
|
-
|
|
75
|
-
|
|
76
|
+
expr (Optional[str]):
|
|
77
|
+
The SQL expression that must evaluate to true for every
|
|
78
|
+
processed row.
|
|
79
|
+
message (Optional[str]):
|
|
80
|
+
The message to include in the operational alert if the
|
|
81
|
+
assertion fails.
|
|
76
82
|
"""
|
|
77
83
|
|
|
78
84
|
expr: Optional[str] = None
|
|
@@ -100,13 +106,17 @@ class FieldSpec(BaseModel):
|
|
|
100
106
|
A join expression within a FieldSpec.
|
|
101
107
|
|
|
102
108
|
Attributes:
|
|
103
|
-
with_table (Optional[str]):
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
109
|
+
with_table (Optional[str]):
|
|
110
|
+
The table to join to.
|
|
111
|
+
with_csv (Optional[FieldSpec.Join.WithCSV]):
|
|
112
|
+
The CSV configuration used for the join.
|
|
113
|
+
lhs (Optional[str]):
|
|
114
|
+
The column in the source dataframe to join on.
|
|
115
|
+
rhs (Optional[str]):
|
|
116
|
+
The column in the joined table to join on.
|
|
117
|
+
select (Optional[str]):
|
|
118
|
+
A SQL expression to create the new field from the joined
|
|
119
|
+
dataset.
|
|
110
120
|
"""
|
|
111
121
|
|
|
112
122
|
class WithCSV(BaseModel):
|
|
@@ -114,7 +124,8 @@ class FieldSpec(BaseModel):
|
|
|
114
124
|
A CSV file used for joins within a FieldSpec.
|
|
115
125
|
|
|
116
126
|
Attributes:
|
|
117
|
-
path (Optional[str]):
|
|
127
|
+
path (Optional[str]):
|
|
128
|
+
The path to the CSV file.
|
|
118
129
|
"""
|
|
119
130
|
|
|
120
131
|
path: Optional[str] = None
|
|
@@ -213,8 +224,8 @@ class FieldUtils(BaseModel):
|
|
|
213
224
|
unreferenced_columns (Optional[FieldUtils.UnreferencedColumns]):
|
|
214
225
|
Defines whether columns not referenced in the FieldSpecs should
|
|
215
226
|
be preserved or omitted.
|
|
216
|
-
json_extract (Optional[List[FieldUtils.JsonExtract]]):
|
|
217
|
-
configurations for extracting JSON fields from a column.
|
|
227
|
+
json_extract (Optional[List[FieldUtils.JsonExtract]]):
|
|
228
|
+
A list of configurations for extracting JSON fields from a column.
|
|
218
229
|
"""
|
|
219
230
|
|
|
220
231
|
class UnreferencedColumns(BaseModel):
|
|
@@ -222,14 +233,16 @@ class FieldUtils(BaseModel):
|
|
|
222
233
|
Configuration related to unreferenced columns.
|
|
223
234
|
|
|
224
235
|
Attributes:
|
|
225
|
-
preserve (Optional[bool]):
|
|
226
|
-
referenced in the FieldSpecs
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
236
|
+
preserve (Optional[bool]):
|
|
237
|
+
Indicates whether columns not referenced in the FieldSpecs
|
|
238
|
+
should be preserved.
|
|
239
|
+
embed_column (Optional[str]):
|
|
240
|
+
Specifies a name for a new column to contain all unreferenced
|
|
241
|
+
fields.
|
|
242
|
+
omit_columns (Optional[List[str]]):
|
|
243
|
+
Lists columns to exclude from the output.
|
|
244
|
+
duplicate_prefix (Optional[str]):
|
|
245
|
+
Adds a prefix to resolve ambiguous duplicate field names.
|
|
233
246
|
"""
|
|
234
247
|
|
|
235
248
|
preserve: Optional[bool] = None
|
|
@@ -263,14 +276,15 @@ class FieldUtils(BaseModel):
|
|
|
263
276
|
Configuration for extracting JSON fields from table columns.
|
|
264
277
|
|
|
265
278
|
Attributes:
|
|
266
|
-
source (Optional[str]):
|
|
267
|
-
to extract from.
|
|
268
|
-
omit_fields (Optional[List[str]]):
|
|
269
|
-
exclude from extraction.
|
|
270
|
-
duplicate_prefix (Optional[str]):
|
|
271
|
-
duplicate field names during
|
|
272
|
-
|
|
273
|
-
|
|
279
|
+
source (Optional[str]):
|
|
280
|
+
The column name containing JSON string(s) to extract from.
|
|
281
|
+
omit_fields (Optional[List[str]]):
|
|
282
|
+
Specifies high-level fields to exclude from extraction.
|
|
283
|
+
duplicate_prefix (Optional[str]):
|
|
284
|
+
Adds a prefix to resolve duplicate field names during
|
|
285
|
+
extraction.
|
|
286
|
+
embed_column (Optional[str]):
|
|
287
|
+
Specifies a column name to store the extracted JSON object.
|
|
274
288
|
"""
|
|
275
289
|
|
|
276
290
|
source: Optional[str] = None
|
|
@@ -333,12 +347,13 @@ class BronzeSpec(BaseModel):
|
|
|
333
347
|
Configuration for bronze table within a DataSource.
|
|
334
348
|
|
|
335
349
|
Attributes:
|
|
336
|
-
clustering (Optional[BronzeSpec.Clustering]):
|
|
337
|
-
liquid clustering configuration for the
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
350
|
+
clustering (Optional[BronzeSpec.Clustering]):
|
|
351
|
+
Describes optional liquid clustering configuration for the
|
|
352
|
+
bronze table.
|
|
353
|
+
bronze_table (Optional[str]):
|
|
354
|
+
The name of the bronze table to create and hold the imported data.
|
|
355
|
+
skip_bronze_loading (Optional[bool]):
|
|
356
|
+
Indicates whether to skip the bronze loading step.
|
|
342
357
|
"""
|
|
343
358
|
|
|
344
359
|
class Clustering(BaseModel):
|
|
@@ -346,10 +361,11 @@ class BronzeSpec(BaseModel):
|
|
|
346
361
|
Configuration of liquid clustering for a bronze table.
|
|
347
362
|
|
|
348
363
|
Attributes:
|
|
349
|
-
column_names (Optional[List[str]]):
|
|
350
|
-
include in liquid clustering.
|
|
351
|
-
time_column (Optional[str]):
|
|
352
|
-
information for
|
|
364
|
+
column_names (Optional[List[str]]):
|
|
365
|
+
List of column names to include in liquid clustering.
|
|
366
|
+
time_column (Optional[str]):
|
|
367
|
+
Name of the column that holds 'time' information for
|
|
368
|
+
clustering.
|
|
353
369
|
"""
|
|
354
370
|
|
|
355
371
|
column_names: Optional[List[str]] = None
|
|
@@ -399,12 +415,12 @@ class SilverSpec(BaseModel):
|
|
|
399
415
|
Configuration for silver table in a DataSource.
|
|
400
416
|
|
|
401
417
|
Attributes:
|
|
402
|
-
bronze_tables (Optional[List[SilverSpec.BronzeTable]]):
|
|
403
|
-
bronze tables to be joined for silver transformation.
|
|
404
|
-
pre_transform (Optional[SilverSpec.PreTransform]):
|
|
405
|
-
configuration.
|
|
406
|
-
transform (Optional[SilverSpec.Transform]):
|
|
407
|
-
configuration for silver processing.
|
|
418
|
+
bronze_tables (Optional[List[SilverSpec.BronzeTable]]):
|
|
419
|
+
A list of bronze tables to be joined for silver transformation.
|
|
420
|
+
pre_transform (Optional[SilverSpec.PreTransform]):
|
|
421
|
+
Pretransformation configuration.
|
|
422
|
+
transform (Optional[SilverSpec.Transform]):
|
|
423
|
+
Transformation configuration for silver processing.
|
|
408
424
|
"""
|
|
409
425
|
|
|
410
426
|
class BronzeTable(BaseModel):
|
|
@@ -412,12 +428,18 @@ class SilverSpec(BaseModel):
|
|
|
412
428
|
Reference to a bronze table for a silver table.
|
|
413
429
|
|
|
414
430
|
Attributes:
|
|
415
|
-
name (Optional[str]):
|
|
431
|
+
name (Optional[str]):
|
|
432
|
+
Name of the bronze table.
|
|
416
433
|
streaming (Optional[bool]):
|
|
434
|
+
True if the input should be streamed from the bronze table.
|
|
417
435
|
watermark (Optional[SilverSpec.BronzeTable.Watermark]):
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
436
|
+
Bronze table watermark.
|
|
437
|
+
alias (Optional[str]):
|
|
438
|
+
Alias name for the table.
|
|
439
|
+
join_type (Optional[str]):
|
|
440
|
+
How to join to the preceding table.
|
|
441
|
+
join_expr (Optional[str]):
|
|
442
|
+
The join condition expression.
|
|
421
443
|
"""
|
|
422
444
|
|
|
423
445
|
class Watermark(BaseModel):
|
|
@@ -425,12 +447,12 @@ class SilverSpec(BaseModel):
|
|
|
425
447
|
Watermark for a bronze source table within a silver table.
|
|
426
448
|
|
|
427
449
|
Attributes:
|
|
428
|
-
event_time_column (Optional[str]):
|
|
429
|
-
time for the delay threshold.
|
|
430
|
-
delay_threshold (Optional[str]):
|
|
431
|
-
the watermark delay.
|
|
432
|
-
drop_duplicates (Optional[List[str]]):
|
|
433
|
-
pyspark dropDuplicates.
|
|
450
|
+
event_time_column (Optional[str]):
|
|
451
|
+
Which column is the event time for the delay threshold.
|
|
452
|
+
delay_threshold (Optional[str]):
|
|
453
|
+
A time duration string for the watermark delay.
|
|
454
|
+
drop_duplicates (Optional[List[str]]):
|
|
455
|
+
Columns to pass to pyspark dropDuplicates.
|
|
434
456
|
"""
|
|
435
457
|
|
|
436
458
|
event_time_column: Optional[str] = None
|
|
@@ -496,17 +518,20 @@ class SilverSpec(BaseModel):
|
|
|
496
518
|
|
|
497
519
|
Attributes:
|
|
498
520
|
use_preset (Optional[str]):
|
|
521
|
+
Preset to use.
|
|
499
522
|
skip_pre_transform (Optional[bool]):
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
523
|
+
If True, skip pre-transform entirely.
|
|
524
|
+
custom (Optional[SilverSpec.PreTransform.Custom]):
|
|
525
|
+
Custom pretransform function and options.
|
|
526
|
+
filter (Optional[str]):
|
|
527
|
+
A SQL filter to apply at the beginning of the preTransform
|
|
528
|
+
phase.
|
|
529
|
+
post_filter (Optional[str]):
|
|
530
|
+
A SQL filter to apply at the end of the preTransform phase.
|
|
506
531
|
preset_overrides (Optional[SilverSpec.PreTransform.PresetOverrides]):
|
|
507
532
|
Overrides for preset filters.
|
|
508
|
-
add_fields (Optional[List[FieldSpec]]):
|
|
509
|
-
add to the transformation.
|
|
533
|
+
add_fields (Optional[List[FieldSpec]]):
|
|
534
|
+
User defined fields to add to the transformation.
|
|
510
535
|
"""
|
|
511
536
|
|
|
512
537
|
class Custom(BaseModel):
|
|
@@ -543,8 +568,8 @@ class SilverSpec(BaseModel):
|
|
|
543
568
|
Overrides for the preset.
|
|
544
569
|
|
|
545
570
|
Attributes:
|
|
546
|
-
omit_fields (Optional[List[str]]):
|
|
547
|
-
from the chosen preset.
|
|
571
|
+
omit_fields (Optional[List[str]]):
|
|
572
|
+
A list of fields to omit from the chosen preset.
|
|
548
573
|
"""
|
|
549
574
|
|
|
550
575
|
omit_fields: Optional[List[str]] = None
|
|
@@ -616,6 +641,7 @@ class SilverSpec(BaseModel):
|
|
|
616
641
|
|
|
617
642
|
Attributes:
|
|
618
643
|
skip_silver_transform (Optional[bool]):
|
|
644
|
+
If True, skip transform entirely.
|
|
619
645
|
preset_overrides (Optional[SilverSpec.Transform.PresetOverrides]):
|
|
620
646
|
Preset overrides for the silver transformation.
|
|
621
647
|
"""
|
|
@@ -625,14 +651,12 @@ class SilverSpec(BaseModel):
|
|
|
625
651
|
Overrides for preset transform settings.
|
|
626
652
|
|
|
627
653
|
Attributes:
|
|
628
|
-
modify_tables (Optional[List[SilverSpec.Transform.
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
AddTables]]): User defined tables to include in the
|
|
635
|
-
transformation.
|
|
654
|
+
modify_tables (Optional[List[SilverSpec.Transform.PresetOverrides.ModifyTables]]):
|
|
655
|
+
Modifications forexisting tables.
|
|
656
|
+
omit_tables (Optional[List[str]]):
|
|
657
|
+
A list of tables to omit from the preset.
|
|
658
|
+
add_tables (Optional[List[SilverSpec.Transform.PresetOverrides.AddTables]]):
|
|
659
|
+
User defined tables to include in the transformation.
|
|
636
660
|
"""
|
|
637
661
|
|
|
638
662
|
class Custom(BaseModel):
|
|
@@ -909,12 +933,12 @@ class GoldSpec(BaseModel):
|
|
|
909
933
|
Configuration for gold table in a DataSource.
|
|
910
934
|
|
|
911
935
|
Attributes:
|
|
912
|
-
omit_tables (Optional[List[str]]):
|
|
913
|
-
preset.
|
|
914
|
-
modify_tables (Optional[List[GoldSpec.ModifyTables]]):
|
|
915
|
-
for existing gold table definitions.
|
|
916
|
-
add_tables (Optional[List[GoldSpec.AddTables]]):
|
|
917
|
-
to add to the gold configuration.
|
|
936
|
+
omit_tables (Optional[List[str]]):
|
|
937
|
+
A list of tables to omit from the preset.
|
|
938
|
+
modify_tables (Optional[List[GoldSpec.ModifyTables]]):
|
|
939
|
+
Modifications for existing gold table definitions.
|
|
940
|
+
add_tables (Optional[List[GoldSpec.AddTables]]):
|
|
941
|
+
User defined tables to add to the gold configuration.
|
|
918
942
|
"""
|
|
919
943
|
|
|
920
944
|
class ModifyTables(BaseModel):
|
|
@@ -923,15 +947,19 @@ class GoldSpec(BaseModel):
|
|
|
923
947
|
|
|
924
948
|
Attributes:
|
|
925
949
|
name (Optional[str]):
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
950
|
+
Table name.
|
|
951
|
+
source_table (Optional[str]):
|
|
952
|
+
Used to match against the preset's gold stanzas input fields.
|
|
953
|
+
custom (Optional[GoldSpec.ModifyTables.Custom]):
|
|
954
|
+
Custom function for modifying tables.
|
|
955
|
+
omit_fields (Optional[List[str]]):
|
|
956
|
+
A list of fields to omit.
|
|
957
|
+
add_fields (Optional[List[FieldSpec]]):
|
|
958
|
+
Fields to add.
|
|
959
|
+
filter (Optional[str]):
|
|
960
|
+
A SQL filter to apply before processing.
|
|
961
|
+
post_filter (Optional[str]):
|
|
962
|
+
A SQL filter to apply after processing.
|
|
935
963
|
"""
|
|
936
964
|
|
|
937
965
|
class Custom(BaseModel):
|
|
@@ -1016,16 +1044,18 @@ class GoldSpec(BaseModel):
|
|
|
1016
1044
|
Tables to add during gold table transformation.
|
|
1017
1045
|
|
|
1018
1046
|
Attributes:
|
|
1019
|
-
custom (Optional[GoldSpec.AddTables.Custom]):
|
|
1020
|
-
adding tables.
|
|
1021
|
-
name (Optional[str]):
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1047
|
+
custom (Optional[GoldSpec.AddTables.Custom]):
|
|
1048
|
+
Custom function for adding tables.
|
|
1049
|
+
name (Optional[str]):
|
|
1050
|
+
The name of the table to add.
|
|
1051
|
+
source_table (Optional[str]):
|
|
1052
|
+
The source table/dataframe for the gold table.
|
|
1053
|
+
filter (Optional[str]):
|
|
1054
|
+
A SQL filter to apply.
|
|
1055
|
+
post_filter (Optional[str]):
|
|
1056
|
+
A SQL filter to apply after processing.
|
|
1057
|
+
fields (Optional[List[FieldSpec]]):
|
|
1058
|
+
Field specifications for the new table.
|
|
1029
1059
|
"""
|
|
1030
1060
|
|
|
1031
1061
|
class Custom(BaseModel):
|
|
@@ -1150,20 +1180,28 @@ class DataSource(BaseModel):
|
|
|
1150
1180
|
A DataSource resource.
|
|
1151
1181
|
|
|
1152
1182
|
Attributes:
|
|
1153
|
-
metadata (Optional[Metadata]):
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
data
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1183
|
+
metadata (Optional[Metadata]):
|
|
1184
|
+
Standard object metadata.
|
|
1185
|
+
source (Optional[str]):
|
|
1186
|
+
The name of the originator of the data.
|
|
1187
|
+
source_type (Optional[str]):
|
|
1188
|
+
The type of data being imported.
|
|
1189
|
+
schedule (Optional[Schedule]):
|
|
1190
|
+
The schedule for data ingestion.
|
|
1191
|
+
custom (Optional[DataSource.CustomNotebook]):
|
|
1192
|
+
A custom notebook for the datasource.
|
|
1193
|
+
use_preset (Optional[str]):
|
|
1194
|
+
The name of the preset to use for this data source.
|
|
1195
|
+
autoloader (Optional[DataSource.Autoloader]):
|
|
1196
|
+
Autoloader configuration.
|
|
1197
|
+
bronze (Optional[BronzeSpec]):
|
|
1198
|
+
Bronze table configuration.
|
|
1199
|
+
silver (Optional[SilverSpec]):
|
|
1200
|
+
Silver transformation configuration.
|
|
1201
|
+
gold (Optional[GoldSpec]):
|
|
1202
|
+
Gold transformation configuration.
|
|
1203
|
+
status (Optional[ResourceStatus]):
|
|
1204
|
+
The current status of the datasource.
|
|
1167
1205
|
"""
|
|
1168
1206
|
|
|
1169
1207
|
class CustomNotebook(BaseModel):
|
|
@@ -1171,8 +1209,8 @@ class DataSource(BaseModel):
|
|
|
1171
1209
|
A custom notebook for generating data.
|
|
1172
1210
|
|
|
1173
1211
|
Attributes:
|
|
1174
|
-
notebook (Optional[str]):
|
|
1175
|
-
workspace.
|
|
1212
|
+
notebook (Optional[str]):
|
|
1213
|
+
Path to the notebook in the Databricks workspace.
|
|
1176
1214
|
"""
|
|
1177
1215
|
|
|
1178
1216
|
notebook: Optional[str] = None
|
|
@@ -1197,11 +1235,12 @@ class DataSource(BaseModel):
|
|
|
1197
1235
|
Autoloader configuration for the DataSource.
|
|
1198
1236
|
|
|
1199
1237
|
Attributes:
|
|
1200
|
-
format (Optional[str]):
|
|
1201
|
-
parquet, csv, etc.).
|
|
1202
|
-
location (str):
|
|
1203
|
-
|
|
1204
|
-
|
|
1238
|
+
format (Optional[str]):
|
|
1239
|
+
The format of the data (e.g., json, parquet, csv, etc.).
|
|
1240
|
+
location (str):
|
|
1241
|
+
External location for the volume in Unity Catalog.
|
|
1242
|
+
schema_file (Optional[str]):
|
|
1243
|
+
An optional file containing the schema of the data source.
|
|
1205
1244
|
cloud_files (Optional[DataSource.Autoloader.CloudFiles]):
|
|
1206
1245
|
CloudFiles configuration.
|
|
1207
1246
|
"""
|
dasl_client/types/dbui.py
CHANGED
|
@@ -24,12 +24,16 @@ class Dbui(BaseModel):
|
|
|
24
24
|
Table column details.
|
|
25
25
|
|
|
26
26
|
Attributes:
|
|
27
|
-
name (Optional[str]):
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
column
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
name (Optional[str]):
|
|
28
|
+
The column name.
|
|
29
|
+
type_name (Optional[str]):
|
|
30
|
+
The name of the column type.
|
|
31
|
+
type_detail (Optional[str]):
|
|
32
|
+
Additional information about the column's type.
|
|
33
|
+
position (Optional[int]):
|
|
34
|
+
The column's index in the table.
|
|
35
|
+
nullable (Optional[bool]):
|
|
36
|
+
Indicates if this column is nullable.
|
|
33
37
|
"""
|
|
34
38
|
|
|
35
39
|
name: Optional[str] = None
|
|
@@ -125,12 +129,14 @@ class TransformRequest(BaseModel):
|
|
|
125
129
|
silver).
|
|
126
130
|
|
|
127
131
|
Attributes:
|
|
128
|
-
input (TransformRequest.Input):
|
|
129
|
-
columns metadata and data.
|
|
132
|
+
input (TransformRequest.Input):
|
|
133
|
+
The input block containing the columns metadata and data.
|
|
130
134
|
autoloader_input (DataSource.Autoloader):
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
135
|
+
The autoloader input configuration.
|
|
136
|
+
use_preset (str):
|
|
137
|
+
Indicates which preset to use for the transforms.
|
|
138
|
+
transforms (List[TransformRequest.Transform]):
|
|
139
|
+
A list of transform configurations.
|
|
134
140
|
"""
|
|
135
141
|
|
|
136
142
|
class Input(BaseModel):
|
|
@@ -138,10 +144,10 @@ class TransformRequest(BaseModel):
|
|
|
138
144
|
Input data for the transform request.
|
|
139
145
|
|
|
140
146
|
Attributes:
|
|
141
|
-
columns (List[Dbui.TableColumnDetails]):
|
|
142
|
-
the columns.
|
|
143
|
-
data (List[Dict[str, str]]):
|
|
144
|
-
dictionaries.
|
|
147
|
+
columns (List[Dbui.TableColumnDetails]):
|
|
148
|
+
A list of metadata about the columns.
|
|
149
|
+
data (List[Dict[str, str]]):
|
|
150
|
+
The data represented as a list of dictionaries.
|
|
145
151
|
"""
|
|
146
152
|
|
|
147
153
|
columns: List[Dbui.TableColumnDetails]
|
|
@@ -171,19 +177,24 @@ class TransformRequest(BaseModel):
|
|
|
171
177
|
A transform configuration to apply to the data.
|
|
172
178
|
|
|
173
179
|
Attributes:
|
|
174
|
-
transform_type (str):
|
|
175
|
-
SilverPreTransform,
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
+
transform_type (str):
|
|
181
|
+
The type of transform (one of SilverPreTransform,
|
|
182
|
+
SilverTransform, Gold).
|
|
183
|
+
use_pre_transform_preset (str):
|
|
184
|
+
Indicates which pre-transform preset to use if requested.
|
|
185
|
+
use_preset_table (str):
|
|
186
|
+
Indicates which table to use within the preset's transform
|
|
187
|
+
type for Silver and Gold.
|
|
180
188
|
filter (str):
|
|
189
|
+
Filter expression.
|
|
181
190
|
post_filter (str):
|
|
191
|
+
Filter expression applied after the transform.
|
|
182
192
|
preset_overrides (TransformRequest.Transform.PresetOverrides):
|
|
183
193
|
Overrides for the preset configuration.
|
|
184
|
-
add_fields (List[FieldSpec]):
|
|
185
|
-
to add.
|
|
186
|
-
utils (FieldUtils):
|
|
194
|
+
add_fields (List[FieldSpec]):
|
|
195
|
+
Additional field specifications to add.
|
|
196
|
+
utils (FieldUtils):
|
|
197
|
+
Utility configurations for handling fields.
|
|
187
198
|
"""
|
|
188
199
|
|
|
189
200
|
class PresetOverrides(BaseModel):
|
|
@@ -191,8 +202,8 @@ class TransformRequest(BaseModel):
|
|
|
191
202
|
Preset overrides for a transform configuration.
|
|
192
203
|
|
|
193
204
|
Attributes:
|
|
194
|
-
omit_fields (List[str]):
|
|
195
|
-
the preset.
|
|
205
|
+
omit_fields (List[str]):
|
|
206
|
+
A list of fields to omit from the preset.
|
|
196
207
|
"""
|
|
197
208
|
|
|
198
209
|
omit_fields: Optional[List[str]] = None
|
|
@@ -293,8 +304,8 @@ class TransformResponse(BaseModel):
|
|
|
293
304
|
applied on the data.
|
|
294
305
|
|
|
295
306
|
Attributes:
|
|
296
|
-
stages (List[TransformResponse.Stages]):
|
|
297
|
-
representing each intermediate transform step.
|
|
307
|
+
stages (List[TransformResponse.Stages]):
|
|
308
|
+
A list of stages representing each intermediate transform step.
|
|
298
309
|
"""
|
|
299
310
|
|
|
300
311
|
class Stages(BaseModel):
|
|
@@ -302,12 +313,13 @@ class TransformResponse(BaseModel):
|
|
|
302
313
|
A stage in the transform response.
|
|
303
314
|
|
|
304
315
|
Attributes:
|
|
305
|
-
transform_type (str):
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
316
|
+
transform_type (str):
|
|
317
|
+
The type of transform applied in this stage (one of
|
|
318
|
+
SilverPreTransform, SilverTransform, Gold, Input).
|
|
319
|
+
columns (List[Dbui.TableColumnDetails]):
|
|
320
|
+
A list of metadata about the columns returned in this stage.
|
|
321
|
+
data (List[Dict[str, str]]):
|
|
322
|
+
The data represented as a list of dictionaries.
|
|
311
323
|
"""
|
|
312
324
|
|
|
313
325
|
transform_type: str
|