Closed airatvibe closed 1 month ago
Hey @AiratHalitov,
We have created an internal ticket to look into this which we will be tracking as "GHC-177"
When I try to cast the values to int type it doesn't help:
SELECT
CAST(storeId AS INT64) AS storeId,
CAST(GLN AS INT64) AS GLN,
CAST(chainGLN AS INT64) AS chainGLN
FROM `{{ $json.dbname }}`
LIMIT 10;
Hey @AiratHalitov,
This is likely to be where we don't support int64 fully as Javascript has issues with larger numbers. Instead a string is used to make sure the number is not rounded which would cause more issues.
Fix got released with n8n@1.62.1
Bug Description
I'm encountering an issue with the Google BigQuery node in n8n. When querying integer fields from BigQuery, the node returns the values as strings instead of numbers. This behavior can cause unexpected results in subsequent nodes that expect numeric data types.
Google BigQuery node version 2.1 (Latest)
Output example:
DB schema:
To Reproduce
Expected behavior
The integer fields should be returned as numbers.
Operating System
Alpine Linux v3.20
n8n Version
1.54.4
Node.js Version
3.4
Database
PostgreSQL
Execution mode
queue