RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
Fix too long integer for `Table`. (#4651)
Kevin Huc24137bd119f
diff --git a/rag/app/table.py b/rag/app/table.pyindex 542edec7a6..b35cb105eb 100644--- a/rag/app/table.py+++ b/rag/app/table.py@@ -102,9 +102,9 @@ def column_data_type(arr):for a in arr:if a is None: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- elif re.match(r"[+-]?[0-9.]+$", str(a).replace("%%", "")):+ elif re.match(r"[+-]?[0-9.]{,19}$", str(a).replace("%%", "")):counts["float"] += 1elif re.match(r"(true|yes|是|\*|✓|✔|☑|✅|√|false|no|否|⍻|×)$", str(a), flags=re.IGNORECASE):counts["bool"] += 1