Title: feat: Add bigframes.execution_history API to track BigQuery jobs by shuoweil · Pull Request #2435 · googleapis/python-bigquery-dataframes · GitHub
Open Graph Title: feat: Add bigframes.execution_history API to track BigQuery jobs by shuoweil · Pull Request #2435 · googleapis/python-bigquery-dataframes
X Title: feat: Add bigframes.execution_history API to track BigQuery jobs by shuoweil · Pull Request #2435 · googleapis/python-bigquery-dataframes
Description: This PR promotes execution_history() to the top-level bigframes namespace and upgrades it to track rich metadata for every BigQuery job executed during your session. Key User Benefits: Easier Access: Call bigframes.execution_history() directly instead of digging into sub-namespaces. Rich Metadata Tracking: Captures structured statistics for both Query Jobs and Load Jobs including: job_id and a direct Google Cloud Console URL for easy debugging. Performance metrics: total_bytes_processed, duration_seconds, and slot_millis. Query details (truncated preview of the SQL ran). Clean, Focused Logs: Automatically filters out internal library overhead (like schema validations and index uniqueness checks) so your history only shows the data processing steps you actually care about. Usage Example: 1 import bigframes.pandas as bpd 2 import pandas as pd 3 import bigframes 4 5 # ... run some bigframes operations ... 6 df = bpd.read_gbq("SELECT 1") 7 8 # Upload some local data (triggers a Load Job) 9 bpd.read_pandas(pd.DataFrame({'a': [1, 2, 3]})) 10 11 # Get a DataFrame of all BQ jobs run in this session 12 history = bigframes.execution_history() 13 14 # Inspect recent queries, their costs, and durations 15 print(history[['job_id', 'job_type', 'total_bytes_processed', 'duration_seconds', 'query']]) verified at: vs code notebook: screen/8u2yhaRV9iHbDbF colab notebook: screen/9L8VrP5y9DXhnZz Fixes #<481840739> 🦕
Open Graph Description: This PR promotes execution_history() to the top-level bigframes namespace and upgrades it to track rich metadata for every BigQuery job executed during your session. Key User Benefits: Easier Acc...
X Description: This PR promotes execution_history() to the top-level bigframes namespace and upgrades it to track rich metadata for every BigQuery job executed during your session. Key User Benefits: Easier Acc...
Opengraph URL: https://github.com/googleapis/python-bigquery-dataframes/pull/2435
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:3a813048-e415-41b5-c013-a89c3b2d62b4 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8B26:5370F:29DD5A:391AF8:6A57C976 |
| html-safe-nonce | 4880aaed2a858491df5cc903c91cdf0e71dd8f5b14cd58a17c9932c20d7e234a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QjI2OjUzNzBGOjI5REQ1QTozOTFBRjg6NkE1N0M5NzYiLCJ2aXNpdG9yX2lkIjoiNzMxNDQyMTA0NzM3MzU4MDY2MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 91c6e8d036caac263a03d4625d55aa5f3e9842d44baa95a2ea62d97997058c27 |
| hovercard-subject-tag | pull_request:3248645929 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/googleapis/python-bigquery-dataframes/pull/2435/files |
| twitter:image | https://avatars.githubusercontent.com/u/189301813?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/189301813?s=400&v=4 |
| og:image:alt | This PR promotes execution_history() to the top-level bigframes namespace and upgrades it to track rich metadata for every BigQuery job executed during your session. Key User Benefits: Easier Acc... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5bf9f84655de1d0e9aa064cd3b2bc9703556c68ae53b94e21b872b7e9f1f7cc1 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/googleapis/python-bigquery-dataframes git https://github.com/googleapis/python-bigquery-dataframes.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 667598363 |
| octolytics-dimension-repository_nwo | googleapis/python-bigquery-dataframes |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 667598363 |
| octolytics-dimension-repository_network_root_nwo | googleapis/python-bigquery-dataframes |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f76ee5bea8be15c2aede06f855f5c4c808f6eaf5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width