-
Notifications
You must be signed in to change notification settings - Fork 14
fix: infer surviving dims in to_dataset for aggregations (closes #189) #218
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
alxmrs
merged 4 commits into
xqlsystems:main
from
ghostiee-11:fix/189-infer-dims-groupby
Jul 4, 2026
+97
−36
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
c294260
fix: infer surviving dims in to_dataset for aggregations (closes #189)
ghostiee-11 dcdcc5c
test: infer dims in aggregation tests; add AGENTS.md contributor guide
ghostiee-11 f905ad8
docs: note to_dataset dim inference; refine AGENTS.md per review
ghostiee-11 8c55530
docs: trim the quickstart to_dataset comment
ghostiee-11 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| # AGENTS.md | ||
|
|
||
| Guidance for contributors (including AI assistants) working on `xarray-sql`. It | ||
| summarizes recurring maintainer review feedback so changes land clean. | ||
|
|
||
| ## Documentation and comments | ||
|
|
||
| - Keep docstrings and comments self-contained. Do **not** put GitHub issue or PR | ||
| numbers in docstrings or code comments; a reader should not need the issue | ||
| tracker to understand the code. Issue references belong in the commit message | ||
| and PR description (e.g. `Closes #189`), not in the source. | ||
| - Do not reference the review conversation, chat, or "the reporter" in comments. | ||
| Describe the behavior, not how it came up. | ||
|
|
||
| ## API surface | ||
|
|
||
| - Mark internal helpers private with a leading underscore when they are not part | ||
| of the public API. | ||
|
|
||
| ## Tests | ||
|
|
||
| - Test the public contract (values, dims, coords, attrs), not internal call | ||
| counts or private classes, so the suite survives refactors. | ||
| - Avoid redundant tests: if a public-path test already covers a behavior, do not | ||
| add a second lower-level test for the same thing. | ||
| - Make query results deterministic with `ORDER BY` so assertions do not have to | ||
| re-sort the output. | ||
| - Do not pass `dims=` to `to_dataset()` when inference already resolves them. | ||
| Reserve explicit `dims=` / `template=` for genuinely ambiguous cases (multiple | ||
| registered Datasets, or a test that is specifically exercising those | ||
| arguments). | ||
|
|
||
| ## Imports | ||
|
|
||
| - Keep imports at the top of the file. Assume transitive dependencies are safe | ||
| to import non-locally, rather than deferring imports into functions to avoid | ||
| a dependency. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.