Skip to content

Commit 617407a

Browse files
committed
Update data type in duckdb
1 parent 5336776 commit 617407a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ddl/insert_data_duckdb.sql

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ FROM read_csv(
88
);
99

1010
CREATE OR REPLACE TABLE Account AS
11-
SELECT id, account_id, owner, CAST(balance AS DOUBLE) AS balance
11+
SELECT id, account_id, owner, balance
1212
FROM read_csv(
1313
'data/account.csv',
1414
header = true
1515
);
1616

1717
CREATE OR REPLACE TABLE Transfer AS
18-
SELECT source, target, CAST(amount AS DOUBLE) AS amount
18+
SELECT source, target, amount
1919
FROM read_csv('data/transfer.csv', header = true);

0 commit comments

Comments
 (0)