Skip to content

Commit

Permalink
fix: summary to use only first 3 characters (#111)
Browse files Browse the repository at this point in the history
fixes for environments where spark version has more than 3 characters
  • Loading branch information
dCodeYL authored Aug 21, 2023
1 parent e4f4ff9 commit 241ca94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cuallee/pyspark_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ def summary(check: Check, dataframe: DataFrame) -> DataFrame:

# Compute the expression
computed_expressions = compute(check._rule)
if int(spark.version.replace(".", "")) < 330:
if int(spark.version.replace(".", "")[:3]) < 330:
computed_expressions = _replace_observe_compute(computed_expressions)

rows, observation_result = _compute_observe_method(computed_expressions, dataframe)
Expand Down

0 comments on commit 241ca94

Please sign in to comment.