Magic params flag fails with negative numbers #108
Labels
api: bigquery
Issues related to the googleapis/python-bigquery API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
type: docs
Improvement to the documentation for an API.
Environment details
Colab (Ubuntu 18.04 LTS, Python 3.6.9, pip 19.3.1, bigquery 1.21.0)
Issue/ Example
For a parameterised query, the magic fails to parse negative numbers.
For example, this parameter dict:
and this query:
runs fine if
threshold
is >= 0, but if it's negative, the Magic gets an exception:This happens whether it's a dictionary or a JSON string, and happens with ints as well as floats.
The text was updated successfully, but these errors were encountered: