mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-12 16:59:02 +08:00
Fix too long integer for Table
. (#4651)
### What problem does this PR solve? #4594 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
4011c8f68c
commit
c24137bd11
@ -102,9 +102,9 @@ def column_data_type(arr):
|
|||||||
for a in arr:
|
for a in arr:
|
||||||
if a is None:
|
if a is None:
|
||||||
continue
|
continue
|
||||||
if re.match(r"[+-]?[0-9]+(\.0+)?$", str(a).replace("%%", "")):
|
if re.match(r"[+-]?[0-9]{,19}(\.0+)?$", str(a).replace("%%", "")):
|
||||||
counts["int"] += 1
|
counts["int"] += 1
|
||||||
elif re.match(r"[+-]?[0-9.]+$", str(a).replace("%%", "")):
|
elif re.match(r"[+-]?[0-9.]{,19}$", str(a).replace("%%", "")):
|
||||||
counts["float"] += 1
|
counts["float"] += 1
|
||||||
elif re.match(r"(true|yes|是|\*|✓|✔|☑|✅|√|false|no|否|⍻|×)$", str(a), flags=re.IGNORECASE):
|
elif re.match(r"(true|yes|是|\*|✓|✔|☑|✅|√|false|no|否|⍻|×)$", str(a), flags=re.IGNORECASE):
|
||||||
counts["bool"] += 1
|
counts["bool"] += 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user