Query Building Blocks
EntityQuery — Top-level query object that combines afrom clause, predicates, expand, order-by, and select into a single data request.
Predicates — Filter conditions applied in the where clause. Support equality, comparison, null checks, and composite AND/OR logic.
Operators — Comparison and logical operators used within predicates: eq, ne, gt, lt, contains, and, or, not, and collection quantifiers any/all.
Expand Clause — Defines which related entities to load inline via expansion paths, reducing round-trips for hierarchical data.
Order By Clause — Specifies sort order for query results using property paths with ascending or descending direction.
Select Clause — Projects specific properties to return in query results, controlling payload size.
Function Expressions — Built-in string, date, and math functions for transforming property values within query expressions.
Query Context — Runtime context parameters including document scoping, project constraints, baseline/revision, and dynamic value resolution.
Query Execution
Lucene Integration — How Powersheet predicates translate to Polarion Lucene queries for server-side execution. Query Splitting — Optimization strategy that splits predicates into Lucene-compatible server queries and in-memory post-filters. Document Filtering — Scoping queries to the current Polarion document usingapplyCurrentDocumentTo constraints.
Project Scoping — Restricting query results to specific Polarion projects via project.id filters.
Baseline and Revision Queries — Querying historical data at specific project baselines or revisions.
Related Sections
- Sheet Configuration Reference — YAML-level configuration for sources, columns, and views
- Data Model Reference — Entity types and relationships that queries operate on
- Field Types Reference — Data types returned by query results
Sources
Sources
Source Code
prod-powersheet-src/com.nextedy.powersheet.client/ltc-repo/cypress/e2e/Sheet/reference.spec.tsGenericQueryResolver.javapowersheet.yamlprod-powersheet-src/com.nextedy.powersheet.client/cypress/fixtures/configurations/constraints_currentDocument_downstream.template.yamlprod-powersheet-src/com.nextedy.powersheet.client/cypress/fixtures/configurations/whole_rtm.template.yaml