Skip to content

feat: add operator parameter to vf() for range filters#1813

Open
jacalata wants to merge 1 commit into
tableau:developmentfrom
jacalata:jac/vf-range-filter-operators
Open

feat: add operator parameter to vf() for range filters#1813
jacalata wants to merge 1 commit into
tableau:developmentfrom
jacalata:jac/vf-range-filter-operators

Conversation

@jacalata

Copy link
Copy Markdown
Contributor

Summary

  • Adds optional operator parameter to RequestOptions.vf() (and by inheritance PDFRequestOptions, ImageRequestOptions, etc.)
  • When provided, encodes the filter as operator:value (e.g. gt:1000) matching the REST API's range filter syntax
  • Backwards-compatible: omitting operator preserves existing exact-match behaviour

Closes #1752

Test plan

  • test_vf_with_operator in test/test_request_option.py verifies gt:1000 encoding
  • Existing vf tests continue to pass (exact-match unchanged)

🤖 Generated with Claude Code

Exposes comparison operators (GreaterThan, LessThan, etc.) on the
vf() method of _DataExportOptions. The REST API accepts operator:value
encoding for view filters; previously callers had to hand-craft the
string themselves.

Fixes tableau#1752

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

[Type 2] Support range filter operators (GreaterThan, LessThan, Between) in PDFRequestOptions.vf() for view filters

1 participant