Skip to content

remote functions #67

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

Merged
merged 62 commits into from
Apr 15, 2025
Merged

remote functions #67

merged 62 commits into from
Apr 15, 2025

Conversation

max-ostapenko
Copy link
Contributor

@max-ostapenko max-ostapenko commented Feb 24, 2025

  • triggering export function from SQL using run_export_job remote function
  • supporting Firestore and Cloud Storage exports
  • changed export configuration to more flexible, example:
{
  "destination": "firestore",
  "config": {
    "database": "tech-report-api-dev",
    "collection": "adoption",
    "type": "report",
    "date": "2025-01-01"
  },
  "query": "SELECT STRING(date) AS date, * EXCEPT(date) FROM reports.tech_report_adoption WHERE date = '2025-01-01'"
}

or

{
  "destination": "cloud_storage",
  "config": {
    "bucket": "httparchive",
    "name": "/reports/bytesTotal.json"
  },
  "query": "SELECT FORMAT_DATE('%Y_%m_%d', date) AS date, * EXCEPT(date) FROM `httparchive.reports.bytesTotal_timeseries`"
}

@max-ostapenko max-ostapenko marked this pull request as ready for review April 15, 2025 05:54
@max-ostapenko max-ostapenko merged commit 91ec26d into main Apr 15, 2025
26 checks passed
@max-ostapenko max-ostapenko deleted the judicial-snake branch April 15, 2025 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant