Skip to content

Commit

Permalink
fix: dryrun
Browse files Browse the repository at this point in the history
  • Loading branch information
rkdud007 committed Jul 22, 2024
1 parent fd9d681 commit e1c6c2c
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions tools/py/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,16 @@ class Module(ValidatedMarshmallowDataclass):
module_class: CompiledClass


@marshmallow_dataclass.dataclass(frozen=True)
class DryRunModule(ValidatedMarshmallowDataclass):
inputs: List[int] = field(
metadata=additional_metadata(
marshmallow_field=mfields.List(IntAsHex(), required=True)
)
)
module_class: CompiledClass


@marshmallow_dataclass.dataclass(frozen=True)
class DatalakeTask:
datalake: Datalake
Expand Down Expand Up @@ -139,8 +149,8 @@ class HDPInput(ValidatedMarshmallowDataclass):
@marshmallow_dataclass.dataclass(frozen=True)
class HDPDryRunInput(ValidatedMarshmallowDataclass):
dry_run_output_path: str
modules: List[Module] = field(
modules: List[DryRunModule] = field(
metadata=additional_metadata(
marshmallow_field=mfields.List(mfields.Nested(Module.Schema))
marshmallow_field=mfields.List(mfields.Nested(DryRunModule.Schema))
)
)

0 comments on commit e1c6c2c

Please sign in to comment.