Skip to content

One-off issue in conversion of INT64 to number #575

@david-cannady

Description

@david-cannady

Thanks for stopping by to let us know something could be better!

PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.

Please run down the following list and make sure you've tried the usual "quick fixes":

If you are still having issues, please be sure to include as much information as possible:

Environment details

  • OS: MacOS 10.4, Windows 10
  • Node.js version: !2.3.1
  • npm version: 6.10.2
  • @google-cloud/bigtable version: 1.0.1

Steps to reproduce

  1. Set an Integer column to Number.MIN_SAFE_INTEGER or Number.MAX_SAFE_INTEGER, via some other method
  2. Attempt to read the value. Using this library
  3. See that the value returned is a string.

Source:

if (Number.MIN_SAFE_INTEGER < num && num < Number.MAX_SAFE_INTEGER) {

This line should read

if (Number.MIN_SAFE_INTEGER <= num && num <= Number.MAX_SAFE_INTEGER) {

to include the SAFE_INTEGER bounds.

Making sure to follow these steps will guarantee the quickest resolution possible.

Thanks!

Metadata

Metadata

Assignees

Labels

api: bigtableIssues related to the googleapis/nodejs-bigtable API.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions