From d828f57dbee591aa6b2d6184a42c0796146c9d14 Mon Sep 17 00:00:00 2001 From: Fritz Larco Date: Thu, 26 Dec 2024 18:14:26 -0300 Subject: [PATCH] handle default case in duckdb BulkImportFlow --- core/dbio/database/database_duckdb_unix.go | 4 ++-- core/dbio/database/database_duckdb_windows.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/dbio/database/database_duckdb_unix.go b/core/dbio/database/database_duckdb_unix.go index 335733e5..2d0860fd 100644 --- a/core/dbio/database/database_duckdb_unix.go +++ b/core/dbio/database/database_duckdb_unix.go @@ -23,9 +23,9 @@ func (conn *DuckDbConn) BulkImportFlow(tableFName string, df *iop.Dataflow) (cou case "csv_files": return conn.importViaTempCSVs(tableFName, df) case "http_server": - fallthrough - default: return conn.importViaHTTP(tableFName, df) + default: + return conn.importViaTempCSVs(tableFName, df) } } diff --git a/core/dbio/database/database_duckdb_windows.go b/core/dbio/database/database_duckdb_windows.go index db80a8fd..c38d9aa1 100644 --- a/core/dbio/database/database_duckdb_windows.go +++ b/core/dbio/database/database_duckdb_windows.go @@ -11,8 +11,8 @@ func (conn *DuckDbConn) BulkImportFlow(tableFName string, df *iop.Dataflow) (cou case "csv_files": return conn.importViaTempCSVs(tableFName, df) case "http_server": - fallthrough - default: return conn.importViaHTTP(tableFName, df) + default: + return conn.importViaTempCSVs(tableFName, df) } }