Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

firestore-bigquery-export schema type record for data? #38

Closed
dfischer opened this issue Oct 12, 2019 · 3 comments
Closed

firestore-bigquery-export schema type record for data? #38

dfischer opened this issue Oct 12, 2019 · 3 comments
Assignees
Labels
in-review Awaiting review by FE team.

Comments

@dfischer
Copy link

[REQUIRED] Step 2: Extension name

firestore-bigquery-export

What feature would you like to see?

When browsing the records I noticed they return the payload in a catchall data field. If I want to query on this field as if it were parsed into a record from json what is the best practice here?

How would you use it?

Use big query more effectively on collection attributes.

@rphlmr
Copy link

rphlmr commented Oct 16, 2019

It would be nice to store only data field :)

For now, I use this query to work with my datas :

SELECT
  JSON_VALUE(data,'$.transactionId') AS transactionId,
  JSON_VALUE(data,'$.createdAt') AS createdAt,
  JSON_VALUE(data,'$.sellerId') AS sellerId,
  JSON_VALUE(data,'$.customerId') AS customerId,
  JSON_VALUE(data,'$.saleAmount') AS saleAmount,
  JSON_VALUE(data,'$.offerId') AS offerId,
FROM
  `myproject.firestore_exports.transactions_raw_changelog`

You can store this result in a new dataset but it will produce a lot of duplicated datas (except if you erase all data when this query is run).

Here, we call this query everytime we want to refresh our data studio dashboard (I don't know if we could do something better for the moment)

@rphlmr
Copy link

rphlmr commented Nov 21, 2019

Maybe could be merged with #113 :)
I'll try soon this suggestion :D

@karayu karayu added the in-review Awaiting review by FE team. label Jan 27, 2020
@jhuleatt
Copy link
Collaborator

jhuleatt commented Mar 3, 2020

@jhuleatt jhuleatt closed this as completed Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in-review Awaiting review by FE team.
Projects
None yet
Development

No branches or pull requests

5 participants