Skip to content

Commit

Permalink
apply suggestion re: Decimal type
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronsteers committed Oct 6, 2024
1 parent 0f23bd2 commit d8d23b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion airbyte/sources/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from __future__ import annotations

import warnings
from decimal import Decimal
from typing import TYPE_CHECKING, Any

from airbyte._executors.util import get_connector_executor
Expand Down Expand Up @@ -138,7 +139,7 @@ def get_benchmark_source(
"""
if isinstance(num_records, str):
try:
num_records = int(float(num_records.replace("_", "")))
num_records = int(Decimal(num_records.replace("_", "")))
except ValueError as ex:
raise PyAirbyteInputError(
message="Invalid number format.",
Expand Down

0 comments on commit d8d23b0

Please sign in to comment.