-
Notifications
You must be signed in to change notification settings - Fork 110
Closed
Labels
api: spannerIssues related to the googleapis/nodejs-spanner API.Issues related to the googleapis/nodejs-spanner API.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
Running a untyped query with stringarray of giving error "INVALID_ARGUMENT: The code field is required for types."
This issue is happening after #1869 where the type check for "string" was removed.
Sample query to reproduce the issue. Where column named "StringArray" is of type "StringArray"
const value = ['ghi', 'jkl'];
const query: ExecuteSqlRequest = {
sql: 'SELECT * FROM ABC WHERE EXISTS (SELECT 1 FROM UNNEST(StringArray) AS c WHERE c IN UNNEST(@value))',
params: {
value,
},
};
Metadata
Metadata
Assignees
Labels
api: spannerIssues related to the googleapis/nodejs-spanner API.Issues related to the googleapis/nodejs-spanner API.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.