Skip to content

Datastore.select - does it work with column names that have solely integers? #810

@jiminikiz

Description

@jiminikiz

Hey dev team, we have a Datastore table like this:
analytics

As you can see, the column names are integers, i.e. IDs mapping to individual rows within another namespace > path.

Using the code found in this issue, I am able to select a column with a name like date, but not a column with a name like 4820477751066624.

transaction.select(['date']); // this works :)
transaction.select(['date','4820477751066624']); // this does not work :( 

Is it generally assumed that column names are strings with at least one letter as the starting character? Or can there be solely integer column names?

Here is my Datastore response:

{ 
    error: {
        code: 412,
        message: 'no matching index found.' 
    }
}

I have double-triple checked to make sure I run the query using an integer that is definitely a column name for the table pictured above.

Thanks in advance for your help!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions