Spaces:
Runtime error
Runtime error
Commit History
-
fix: Improve Pure LLM transformation to preserve all mapped fields
Key Improvements: - Modified _apply_column_mapping to prioritize LLM-mapped fields - Preserves all successfully mapped columns instead of restricting to CDF schema - Only adds missing essential CDF fields as null values - Maintains logical column ordering (mapped first, then missing CDF fields) SAP Data Handling: - Successfully maps 11/12 SAP fields (smart duplicate avoidance) - Preserves complex SAP field names like VBAK.VBELN order_id - Handles SAP-specific data types and formats correctly - Comprehensive test suite with test_sap_pure_llm.py LLM Mapping Logic: - Enhanced field preservation without breaking CDF compatibility - Intelligent duplicate field handling (avoids mapping both VBAK.WAERK and VBAP.WAERK to currency) - Maintains data integrity while maximizing field coverage - Robust error handling for type conversions Results: - 11/12 SAP fields successfully mapped and preserved - All LLM mapping decisions respected and maintained - No data loss from overly restrictive sc…330ad16