Title: Enable to get a compiled SQL query · Issue #5 · lightdash/python-sdk · GitHub
Open Graph Title: Enable to get a compiled SQL query · Issue #5 · lightdash/python-sdk
X Title: Enable to get a compiled SQL query · Issue #5 · lightdash/python-sdk
Description: Motivation The query method enables us to fetch data from the warehouse through Lightdash. That would be great to enhance the integration with other ecosystem. If the data we want to fetch is quite large which exceeds the limitation in L...
Open Graph Description: Motivation The query method enables us to fetch data from the warehouse through Lightdash. That would be great to enhance the integration with other ecosystem. If the data we want to fetch is quite...
X Description: Motivation The query method enables us to fetch data from the warehouse through Lightdash. That would be great to enhance the integration with other ecosystem. If the data we want to fetch is quite...
Opengraph URL: https://github.com/lightdash/python-sdk/issues/5
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Enable to get a compiled SQL query","articleBody":"## Motivation\n\nThe `query` method enables us to fetch data from the warehouse through Lightdash. That would be great to enhance the integration with other ecosystem. If the data we want to fetch is quite large which exceeds the limitation in Lightdash, we might want to use other tools. For instance, [bigframes](https://pypi.org/project/bigframes/) enables ua to deal with even a large BigQuery table or query results. If the python SDK provides a method to compile query by dimensions, metrics and other parameters, that would be very useful to enhance the Lightdash integration.\n\n```python\nquery = orders.compile_query(\n dimensions=[orders.dimensions.xxx, orders.dimensions.xxx],\n limit=10000000,\n)\n\n# Create a dataframe with the compiled query\nimport bigframes.pandas as bpd\n\nbq_df = bpd.read_gbq(query)\n```","author":{"url":"https://github.com/yu-iskw","@type":"Person","name":"yu-iskw"},"datePublished":"2025-03-03T07:19:31.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/5/python-sdk/issues/5"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a1a1f38b-673f-7cfb-a587-4cc87bdcd5c5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DC32:31363C:12338D7:1762D7E:6975A88C |
| html-safe-nonce | 483c891ace6b6ecb7bfdb65befa25eb311cc835249aa06cf3f66ae9d430737d1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQzMyOjMxMzYzQzoxMjMzOEQ3OjE3NjJEN0U6Njk3NUE4OEMiLCJ2aXNpdG9yX2lkIjoiOTAzMTI1OTM0MTE3OTk1NTM0MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2e412cb1e6b187da7b04eca50de4d343bbade54524e6f977ddf71e5bcb55112d |
| hovercard-subject-tag | issue:2890385919 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/lightdash/python-sdk/5/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d3b8294e95acf975555a33726222b1beb5f78a63fbf2be7ee17dce8086fbc99a/lightdash/python-sdk/issues/5 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d3b8294e95acf975555a33726222b1beb5f78a63fbf2be7ee17dce8086fbc99a/lightdash/python-sdk/issues/5 |
| og:image:alt | Motivation The query method enables us to fetch data from the warehouse through Lightdash. That would be great to enhance the integration with other ecosystem. If the data we want to fetch is quite... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | yu-iskw |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f |
| turbo-cache-control | no-preview |
| go-import | github.com/lightdash/python-sdk git https://github.com/lightdash/python-sdk.git |
| octolytics-dimension-user_id | 65912827 |
| octolytics-dimension-user_login | lightdash |
| octolytics-dimension-repository_id | 932695849 |
| octolytics-dimension-repository_nwo | lightdash/python-sdk |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 932695849 |
| octolytics-dimension-repository_network_root_nwo | lightdash/python-sdk |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 488b30e96dfd057fbbe44c6665ccbc030b729dde |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width