Skip to content

Commit cf12315

Browse files
committed
StringColumnProfile: build self.all from scratch instead of updating parent's.
1 parent f45f712 commit cf12315

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

pydeequ/profiles.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -544,12 +544,16 @@ def __init__(
544544
super().__init__(spark_session, column, java_column_profile)
545545
self._minLength = get_or_else_none(java_column_profile.minLength())
546546
self._maxLength = get_or_else_none(java_column_profile.maxLength())
547-
self.all.update(
548-
{
549-
"minLength": self._minLength,
550-
"maxLength": self._maxLength,
551-
}
552-
)
547+
self.all = {
548+
"completeness": self.completeness,
549+
"approximateNumDistinctValues": self.approximateNumDistinctValues,
550+
"dataType": self.dataType,
551+
"isDataTypeInferred": self.isDataTypeInferred,
552+
"typeCounts": self.typeCounts,
553+
"histogram": self.histogram,
554+
"minLength": self._minLength,
555+
"maxLength": self._maxLength,
556+
}
553557

554558
@property
555559
def minLength(self) -> Optional[int]:

0 commit comments

Comments
 (0)