pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/Dwrite/ClickHouse/tree/master/src/Analyzer

ClickHouse/src/Analyzer at master · Dwrite/ClickHouse · GitHub
Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Contains query analysis implementation for the ClickHouse SQL dialect.

The query analysis is performed on top of a query tree, which is an intermediate representation of SELECT queries. QueryTreeBuilder recursively traverses query AST and creates corresponding query tree nodes. At this stage, the query is in an unresolved state, and all identifiers are represented by IdentifierNode. Later, during analysis, all IdentifierNodes are replaced by ColumnNode, TableNode, or an aliased expression. There should be no IdentifierNode in the resolved query tree.

This folder contains definitions for all Query Tree components and utility functions for them.

The Resolve/ folder contains functionality responsible for the identifier resolution and type inference. QueryAnalyzer performs identifier resolution, constant folding and substitutes all the used in the query aliases and CTEs. Some parts of the query may still be unresolved after that, e.g., some table functions arguments.

The Passes/ folder contains implementations of query tree level optimizations. All of them are implementations of the IQueryTreePass interface. In most cases, they use InDepthQueryTreeVisitorWithContext to traverse the query and modify some query tree nodes. Please note that InDepthQueryTreeVisitor, compared to InDepthQueryTreeVisitorWithContext, doesn't know about unresolved parts of the query tree and doesn't keep track of the correct subquery Context. It traverses the whole subtree starting from the root node passed to it; thus, it should be used only when you are sure it's safe.

The tests/ folder contains unit tests for some parts of the query tree infrastructure.

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy