You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Hi @rafiramadhana thanks a lot for your interest in this project.
Sorting selectedColumns would possibly change the position of other selected columns along with *. For example select user_id, *, account_id from users should list user_id first and account_id last in resulted columns and remaining all columns in order in place of *.
You could possible collect all fields from data and sort then add it to selectedColumns rather than adding it on-the-fly.
@rafiramadhana yes thats right. I generally follow programatical way of manage firestore data, I found it easy. however there are many open-source and commercial tools to connect firestore.
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
The text was updated successfully, but these errors were encountered: