fix(import): use SQL Server float for decimal inference

Refs: #4072
This commit is contained in:
t8y2 committed 2026-08-14 13:53:03 +00:00
1 parent a99b75a8c5
commit 2b8a5c8897
3 files changed
+60

No files matched your search

@@ -243,6 +243,7 @@ export function importDataTypeForDatabase(inferredType: ImportInferredType, data
return "BIGINT";
case "decimal":
if (["postgres", "gaussdb", "opengauss", "redshift", "kingbase", "highgo", "uxdb", "kwdb", "vastbase"].includes(databaseType || "")) return "DOUBLE PRECISION";
if (databaseType === "sqlserver") return "FLOAT";
if (databaseType === "sqlite" || databaseType === "rqlite" || databaseType === "turso" || databaseType === "cloudflare-d1") return "REAL";
if (databaseType === "oracle" || databaseType === "oceanbase-oracle" || databaseType === "dameng") return "BINARY_DOUBLE";
if (databaseType === "clickhouse") return "Float64";