Expand description
Query parser — converts query strings into an AST.
Structs§
- Comparison
- 비교식:
IDENTIFIER compare_op value - Group
Aggregate - GROUP BY 집계 연산 정의
- Path
- 경로:
.+ 세그먼트들 - Query
- 쿼리 AST (Abstract Syntax Tree)
- Select
Expr - SELECT 절의 컬럼 표현식
Enums§
- Aggregate
Func - Aggregate function used in
group_byoperations. - Arithmetic
Op - Arithmetic binary operator.
- Compare
Op - Comparison operator used in
whereconditions. - Condition
- Boolean condition used in
whereclauses. - Expr
- Expression used in
selectclauses and function arguments. - Literal
Value - 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.
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