Skip to content

Impl support for translating attribute expressions into pinot queries #100

Closed
@kotharironak

Description

@kotharironak

Based on new the discussion, for the new AttributeExpression translate it to appropriate Pinot queries.

As part of this ticket, address the conversation to pinot queries for QS having AttributeExpression

  • selection
  • groupby
  • order by
  • filter

e.g of with AttributeExpression with subpath having filter clause

childFilter {
        lhs {
          AttributeExpression {
            attributeId: "API_TRACE.tags"
            subPath" "span.kind"
          }
        }
        operator: EQ
        rhs {
          literal {
            value {
              valueType: STRING
              string: "server"
            }
          }
        }
}

Pinot Query (selection, and limit are assumed), see filter expression for tags attribute for reference

select mapValue(tags__KEYS,'span.kind',tags__VALUES) FROM spanEventView 
WHERE tenant_id = '__default'  
AND mapValue(tags__KEYS,'span.kind',tags__VALUES) != ''
AND by mapValue(tags__KEYS,'span.kind',tags__VALUES) = 'server'
limit 10000

Reference:

See the reference UI ticket - hypertrace/hypertrace-ui#1099 and discussion.


As a part of this issue, the following subtasks would be required :

Few follow up PR's which will be required are :

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions