Skip to content

[query-engine] Add support for other OTTL literals #611

Open
@drewrelmas

Description

@drewrelmas

Note: This issue is for testing Copilot workflow in otel-arrow

In #591, support was added for OTTL boolean literals. Next, should support string, int, and float using the following grammar rules:

  • Strings. Strings are represented as literals by surrounding the string in double quotes ("").
  • Ints. Ints are represented by any digit, optionally prepended by plus (+) or minus (-). Internally OTTL represents all ints as int64
  • Floats. Floats are represented by digits separated by a dot (.), optionally prepended by plus (+) or minus (-). The leading digit is optional. Internally OTTL represents all Floats as float64.

Other guidelines:

  • Ensure unit test coverage
  • Use parser-abstractions package when possible to share code between kql_parser and ottl_parser. Funcs for parsing literals can be shared like parse_standard_bool_literal.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestrustPull requests that update Rust code

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions