rewrite

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AstRewrite

func AstRewrite(stmt tree.Statement) tree.Statement

AstRewrite do sql rewrite before plan build. todo: function just for some case we can not deal in compute-engine now. Such as ` filter condition is not a logical expression`.

we should delete these codes if we can deal it in compute-engine next time.

deal with such case: case 1: rewrite normal expression in where clause to be logical expression. (1) rewrite `select ... where expr` to `select ... where expr != 0` (2) rewrite `select ... where not expr` to `select ... where expr == 0` case 2: normal view sql rewrite work ( not Materialized View) Tips: expr contains castExpr, unresolvedName, constant

func Rewrite

func Rewrite(stmt tree.Statement) tree.Statement

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL