Skip to content

Commit fd85bd3

Browse files
author
utkarsh
committed
handled , and / in data points
1 parent 20d4a2e commit fd85bd3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

functions/gcs/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,11 @@ function insertRowsAsStream(tableId, rows, cb) {
9999
const bigquery = new BigQuery({
100100
projectId: projectId,
101101
});
102-
102+
let transformedRows = rows.map(row => {
103+
row.Height = row.Height.replace(',', '.');
104+
row.Date = row.Date.replace('/', '-');
105+
return row;
106+
})
103107
// Inserts data into a table
104108
bigquery
105109
.dataset(datasetId)

0 commit comments

Comments
 (0)