Skip to content

STAR Selection: Result predictable order of columns  #2

@pgollangi

Description

@pgollangi

When all fields of Firestore documents selected using STAR selection (select * from users), the order of columns resulted is not always same.
This is because when STAR selected, FireQL don't explicitly request column selections to get all fields of Firestore collection and uses data returned by Firestore.DocumentSnapshot which is a map field and value pair where order of key is not always same.

One way to return the same columns always would be by sorting columns (map keys) returned by DocumentSnapshot.Data

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions