Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit a797d3f

Browse files
committed
presto: fix precision loss
1 parent 52d046a commit a797d3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data_diff/databases/presto.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def _parse_type(
9494
datetime_precision = int(m.group(1))
9595
return cls(
9696
precision=datetime_precision if datetime_precision is not None else DEFAULT_DATETIME_PRECISION,
97-
rounds=False,
97+
rounds=self.ROUNDS_ON_PREC_LOSS,
9898
)
9999

100100
number_regexps = {r"decimal\((\d+),(\d+)\)": Decimal}

0 commit comments

Comments
 (0)