On passing a dict { 'cats': ['apple orange', 'pear plum']} as params in bigquery magic cell, the first value is changed to appleorange - the space character is filtered out.
Environment details
- OS type and version: colab
- Python version: Python 3.6.9
- pip version: 19.3.1
google-cloud-bigquery version: 1.21.0
Steps to reproduce
A colab notebook illustrating the error:
https://colab.research.google.com/gist/amardeep/63ec303ba8bac3db9849f4044cd19ff1/test-bigquery-array-parameter-bug.ipynb
Code example
params = {
'cats': ['apple orange', 'pear plum']
}
%%bigquery --params $params
SELECT * FROM UNNEST(@cats)
This results in the output:
f0_
0 appleorange
1 pear plum
On passing a dict
{ 'cats': ['apple orange', 'pear plum']}as params in bigquery magic cell, the first value is changed toappleorange- the space character is filtered out.Environment details
google-cloud-bigqueryversion: 1.21.0Steps to reproduce
A colab notebook illustrating the error:
https://colab.research.google.com/gist/amardeep/63ec303ba8bac3db9849f4044cd19ff1/test-bigquery-array-parameter-bug.ipynb
Code example
This results in the output: