hotfix(dc/tool-c): Fix compute formula validation and binning NaN serialization
Critical fixes: 1. Compute column: Add Chinese comma support in formula validation - Problem: Formula with Chinese comma failed validation - Fix: Add Chinese comma character to allowed_chars regex - Example: Support formulas like 'col1(kg)+ col2,col3' 2. Binning operation: Fix NaN serialization error - Problem: 'Out of range float values are not JSON compliant: nan' - Fix: Enhanced NaN/inf handling in binning endpoint - Added np.inf/-np.inf replacement before JSON serialization - Added manual JSON serialization with NaN->null conversion 3. Enhanced all operation endpoints for consistency - Updated conditional, dropna endpoints with same NaN/inf handling - Ensures all operations return JSON-compliant data Modified files: - extraction_service/operations/compute.py: Add Chinese comma to regex - extraction_service/main.py: Enhanced NaN handling in binning/conditional/dropna Status: Hotfix complete, ready for testing
This commit is contained in:
@@ -1248,3 +1248,4 @@ interface FulltextScreeningResult {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -362,3 +362,4 @@ GET /api/v1/asl/fulltext-screening/tasks/:taskId/export
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -305,3 +305,4 @@ Linter错误:0个
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -464,3 +464,4 @@ Failed to open file '\\tmp\\extraction_service\\temp_10000_test.pdf'
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -530,3 +530,4 @@ df['creatinine'] = pd.to_numeric(df['creatinine'], errors='coerce')
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -368,3 +368,4 @@ npm run dev
|
||||
**修复完成时间**: 2025-12-08 当前时间
|
||||
**状态**: ✅ 已完成,待测试验证
|
||||
|
||||
|
||||
|
||||
@@ -945,3 +945,4 @@ export const aiController = new AIController();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1279,3 +1279,4 @@ npm install react-markdown
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -301,3 +301,4 @@ Changes:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -373,3 +373,4 @@ cd path; command
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -602,3 +602,4 @@ import { logger } from '../../../../common/logging/index.js';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -606,3 +606,4 @@ Content-Length: 45234
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -258,3 +258,4 @@ Response:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -411,3 +411,4 @@ Response:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -405,3 +405,4 @@ import { ChatContainer } from '@/shared/components/Chat';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -315,3 +315,4 @@ const initialMessages = defaultMessages.length > 0 ? defaultMessages : [{
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -355,3 +355,4 @@ python main.py
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -603,3 +603,4 @@ http://localhost:5173/data-cleaning/tool-c
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -213,3 +213,4 @@ Day 5 (6-8小时):
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -391,3 +391,4 @@ Docs: docs/03-业务模块/DC-数据清洗整理/06-开发记录/DC模块重建
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -366,3 +366,4 @@ const mockAssets: Asset[] = [
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -350,3 +350,4 @@ frontend-v2/src/modules/dc/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -310,3 +310,4 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -264,3 +264,4 @@ ConflictDetectionService // 冲突检测(字段级对比)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -313,3 +313,4 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -276,3 +276,4 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -340,3 +340,4 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -428,3 +428,4 @@ Tool B后端代码**100%复用**了平台通用能力层,无任何重复开发
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -274,3 +274,4 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -205,3 +205,4 @@ $ node scripts/check-dc-tables.mjs
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -438,3 +438,4 @@ ${fields.map((f, i) => `${i + 1}. ${f.name}:${f.desc}`).join('\n')}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -452,3 +452,4 @@ import { ChatContainer } from '@/shared/components/Chat';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user