feat(mysql): import preview and column mapping (#2600) - #2652
Merged
openai0229 merged 35 commits intoSep 8, 2026
Merged
Conversation
- Bounded preview endpoint (CSV/XLS/XLSX via the same EasyExcel reader as execution): source fields with sample values, target columns with type/ nullable/default, and a suggested mapping by exact name match. - Mapping-driven import: remap source fields to target columns, skip source fields, fill unmapped target columns with DEFAULT or explicit NULL; NOT NULL columns without a default block execution before any write when unmapped. - Row-level error reporting (source row, target column, message) with per-row continue-on-error; type coercion for numeric/date columns. - Import modal gains a mapping step after file selection; i18n in all five locales and MYSQL-IMPORT-001 fixtures (reordered/extra columns, strict table, CSV samples).
Contributor
|
Follow-up review after the latest The current |
This was referenced Aug 19, 2026
Constraint: preserve the PR's preview/mapping flow while adopting main's task submission and artifact handling Rejected: dropping preview mapping | would silently remove the feature under review Confidence: high Scope-risk: narrow Tested: NODE_PATH=/Users/aias/Work/github/Chat2DB/chat2db-community-client/node_modules node ./scripts/validate-i18n.cjs --write-source-hashes; git diff --cached --check
# Conflicts: # chat2db-community-client/scripts/i18n-source-hashes.json
…import-preview-2600
Signed-off-by: liuhy <liuhongyu@apache.org>
Signed-off-by: liuhy <liuhongyu@apache.org>
Signed-off-by: liuhy <liuhongyu@apache.org>
Signed-off-by: liuhy <liuhongyu@apache.org>
Signed-off-by: liuhy <liuhongyu@apache.org>
…import-preview-2600
10 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #2600
Summary
Test plan