Skip to content

Commit

Permalink
ds del column
Browse files Browse the repository at this point in the history
  • Loading branch information
sdafni committed Jan 17, 2024
1 parent 71b6a99 commit 292c1ca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions dagshub/data_engine/client/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ class MetadataFieldSchema:
valueType: MetadataFieldType = field(metadata=config(encoder=lambda val: val.value))
multiple: bool
tags: Optional[Set[str]]
remove: Optional[bool]

def __repr__(self):
res = f"{self.name} ({self.valueType.value})"
Expand Down
4 changes: 4 additions & 0 deletions dagshub/data_engine/model/metadata_field_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ def schema(self) -> MetadataFieldSchema:
)
return self._schema

def delete(self):
self._schema.remove = True
return self

def set_type(self, t: Union[Type, DagshubDataType]) -> "MetadataFieldBuilder":
"""
Set the type of the field.
Expand Down

0 comments on commit 292c1ca

Please sign in to comment.