Skip to main content

Module parser

Module parser 

Source
Expand description

Query parser — converts query strings into an AST.

Structs§

Comparison
비교식: IDENTIFIER compare_op value
GroupAggregate
GROUP BY 집계 연산 정의
Path
경로: . + 세그먼트들
Query
쿼리 AST (Abstract Syntax Tree)
SelectExpr
SELECT 절의 컬럼 표현식
WindowOrderBy
윈도우 ORDER BY 절의 개별 항목
WindowSpec
윈도우 스펙: OVER (PARTITION BY ... ORDER BY ...)

Enums§

AggregateFunc
Aggregate function used in group_by operations.
ArithmeticOp
Arithmetic binary operator.
CompareOp
Comparison operator used in where conditions.
Condition
Boolean condition used in where clauses.
Expr
Expression used in select clauses and function arguments.
LiteralValue
Literal value used as a comparison operand or in expressions.
Operation
Pipeline operation applied after path navigation (e.g., | where ..., | sort ...).
Segment
A single segment of a navigation path.
WindowFunc
윈도우 함수 종류

Functions§

parse_add_field_expr
--add-field 표현식 파싱: "name = expression" 예: “total = amount * quantity”, “full_name = first_name + " " + last_name”
parse_condition_expr
where 절의 조건식만 파싱하는 편의 함수 예: “age > 30 and city == "Seoul"”
parse_query
편의 함수: 쿼리 문자열 → Query