Skip to content

chore: bump deps#52

Merged
ndenev merged 4 commits intomasterfrom
bump-deps
Jan 17, 2026
Merged

chore: bump deps#52
ndenev merged 4 commits intomasterfrom
bump-deps

Conversation

@ndenev
Copy link
Owner

@ndenev ndenev commented Jan 17, 2026

No description provided.

@claude
Copy link

claude bot commented Jan 17, 2026

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

PRQL users can now use the same intuitive dot notation for JSON access
as SQL users. Paths like status.phase or spec.containers[0].image are
automatically converted to s-strings with arrow operators before PRQL
compilation.

Changes:
- Add convert_path_to_arrows() in json_path.rs for string-based path parsing
- Add preprocess_prql_json_paths() in prql.rs to convert paths to s-strings
- Update preprocess_sql() to call PRQL preprocessor before compilation
- Add comprehensive unit tests for the new functionality
- Update integration test 23-prql-parity.sh to use dot notation
Extract parsing logic into focused helper functions for clarity:

json_path.rs:
- consume_identifier() - extracts alphanumeric identifiers
- consume_field_name() - extracts field names including hyphens
- parse_path_segments() - orchestrates segment parsing
- parse_bracket_segment() - handles [n] and [] bracket parsing

prql.rs:
- Replace boolean flag with cleaner match statement
- flush_code_buffer() - handles buffer conversion
- copy_string_literal() - encapsulates string handling with escapes
- Rename buffer to code_buffer for clarity

All 306 tests pass. No functional changes.
@ndenev ndenev merged commit 2debdd9 into master Jan 17, 2026
5 checks passed
@ndenev ndenev deleted the bump-deps branch January 17, 2026 19:59
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