Skip to content

JsonpathToJq conformance gaps: remaining 458 skipped tests #73

Description

@stalep

After issue #72 (tokenizing parser) and subsequent bug fixes, jsonpath-to-jq conformance stands at 100/558 (17.9%). The remaining 458 skipped tests break down into distinct categories, prioritized by effort and impact.

High-value, low-effort (36 tests)

Category Count Approach
PG17 string methods 32 .lower()ascii_downcase, .upper()ascii_upcase, .ltrim()/.rtrim()ltrimstr/rtrimstr, .replace()gsub, .initcap()/.btrim()/.split_part() → custom jq defs
is unknown 4 Currently == null; needs == null or . == false or similar three-valued logic

Medium-effort (43 tests)

Category Count Approach
Semantic diffs 27 Mixed: type guards for .string()/.boolean() on arrays, .bigint()/.integer() needing tonumber | floor, three-valued comparison logic, like_regex flag "q" literal escaping
Runtime errors 16 Type-mismatch guards: .keyvalue() on non-objects, .double()/.bigint() on arrays/strings need try wrappers

Hard / deferred (379 tests)

Category Count Notes
Expects PostgreSQL error 209 Could partially test that jjq also errors, but exact error messages differ
Datetime methods 97 .datetime(), .date(), .time(), .timestamp(), .time_tz(), .timestamp_tz() — need jq date function implementations
Path variables 70 $varname parameter passing — requires API change to accept variable bindings
Conversion failures 3 2 are \B in regex (jq does not support), 1 is arithmetic-in-brackets

Tracking

Conformance is tracked automatically via JsonpathConformanceTest using assumeTrue — any improvement is immediately visible in the test count.

Related

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions