doris

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Diagnose

func Diagnose(_ context.Context, _ base.DiagnoseContext, statement string) ([]base.Diagnostic, error)

func GetQuerySpan

func GetQuerySpan(
	ctx context.Context,
	gCtx base.GetQuerySpanContext,
	statement, database, _ string,
	ignoreCaseSensitive bool,
) (*base.QuerySpan, error)

func GetStatementRanges

func GetStatementRanges(_ context.Context, _ base.StatementRangeContext, statement string) ([]base.Range, error)

func NormalizeIdentifier

func NormalizeIdentifier(ctx parser.IIdentifierContext) string

NormalizeIdentifier extracts the identifier text from an IdentifierContext. It removes backticks from quoted identifiers.

func NormalizeMultipartIdentifier

func NormalizeMultipartIdentifier(ctx parser.IMultipartIdentifierContext) []string

NormalizeMultipartIdentifier extracts parts from a MultipartIdentifierContext.

func ParseDorisSQL

func ParseDorisSQL(statement string) ([]*base.ParseResult, error)

ParseDorisSQL parses the given SQL statement by using antlr4. Returns a list of AST and token stream if no error.

func SplitSQL

func SplitSQL(statement string) ([]base.SingleSQL, error)

SplitSQL splits the input into multiple SQL statements using semicolon as delimiter.

Types

This section is empty.

Jump to

Keyboard shortcuts

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