Skip to content

Latest commit

 

History

History
64 lines (46 loc) · 1.65 KB

File metadata and controls

64 lines (46 loc) · 1.65 KB

Query Processor

  • To implement Query processor with initial goals of implementing Query Compiler that contains Query Parser: Syntactic Parsing and Semantic Parsing.

Query Processor

  • In Between User Applications and Storage Manager of RDBMS.

Processor Architecture


Query Processor Types


Query Parser output is Query Expression Tree.


Query Compiler Steps

  • Query Compiler:
    • Lexical Analysis
    • Syntactic Analysis
    • Semantic Analysis
    • Query Optimization

Query Plan Steps


DDL and DML

  • DDL Interpreter doesn't require Query Optimisation

Parser

  • The job of the parser is to take text written in a language such as SQL and convert into a Parse Tree.

Parse Tree

  • Tree whose nodes correspond to either:
    • Atoms: lexical elements such as keywords, names of attributes or relations, constants, parentheses, operators such as + or <, and other schema elements
    • Syntactic Categories: names for families of query subparts that all play a similar role in the query.

Query Logical Plan


Parser

Query outline Parsing Example query processing steps