feat: hiveSQL support create/drop/alter index grammar

This commit is contained in:
hayden
2023-07-07 11:18:27 +08:00
committed by Ziv
parent 28de63e1f0
commit ebd9a1ed85
5 changed files with 7949 additions and 7900 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -90,6 +90,8 @@ import { DropFunctionStatementContext } from "./HiveSqlParser";
import { ReloadFunctionsStatementContext } from "./HiveSqlParser";
import { CreateMacroStatementContext } from "./HiveSqlParser";
import { DropMacroStatementContext } from "./HiveSqlParser";
import { CreateIndexStatementContext } from "./HiveSqlParser";
import { DropIndexStatementContext } from "./HiveSqlParser";
import { CreateViewStatementContext } from "./HiveSqlParser";
import { ViewPartitionContext } from "./HiveSqlParser";
import { ViewOrganizationContext } from "./HiveSqlParser";
@ -289,6 +291,7 @@ import { AlterStatementSuffixCompactContext } from "./HiveSqlParser";
import { AlterStatementSuffixSetOwnerContext } from "./HiveSqlParser";
import { AlterStatementSuffixSetPartSpecContext } from "./HiveSqlParser";
import { AlterStatementSuffixExecuteContext } from "./HiveSqlParser";
import { AlterIndexStatementSuffixContext } from "./HiveSqlParser";
import { FileFormatContext } from "./HiveSqlParser";
import { AlterDataConnectorStatementSuffixContext } from "./HiveSqlParser";
import { AlterDataConnectorSuffixPropertiesContext } from "./HiveSqlParser";
@ -1466,6 +1469,28 @@ export interface HiveSqlParserListener extends ParseTreeListener {
*/
exitDropMacroStatement?: (ctx: DropMacroStatementContext) => void;
/**
* Enter a parse tree produced by `HiveSqlParser.createIndexStatement`.
* @param ctx the parse tree
*/
enterCreateIndexStatement?: (ctx: CreateIndexStatementContext) => void;
/**
* Exit a parse tree produced by `HiveSqlParser.createIndexStatement`.
* @param ctx the parse tree
*/
exitCreateIndexStatement?: (ctx: CreateIndexStatementContext) => void;
/**
* Enter a parse tree produced by `HiveSqlParser.dropIndexStatement`.
* @param ctx the parse tree
*/
enterDropIndexStatement?: (ctx: DropIndexStatementContext) => void;
/**
* Exit a parse tree produced by `HiveSqlParser.dropIndexStatement`.
* @param ctx the parse tree
*/
exitDropIndexStatement?: (ctx: DropIndexStatementContext) => void;
/**
* Enter a parse tree produced by `HiveSqlParser.createViewStatement`.
* @param ctx the parse tree
@ -3655,6 +3680,17 @@ export interface HiveSqlParserListener extends ParseTreeListener {
*/
exitAlterStatementSuffixExecute?: (ctx: AlterStatementSuffixExecuteContext) => void;
/**
* Enter a parse tree produced by `HiveSqlParser.alterIndexStatementSuffix`.
* @param ctx the parse tree
*/
enterAlterIndexStatementSuffix?: (ctx: AlterIndexStatementSuffixContext) => void;
/**
* Exit a parse tree produced by `HiveSqlParser.alterIndexStatementSuffix`.
* @param ctx the parse tree
*/
exitAlterIndexStatementSuffix?: (ctx: AlterIndexStatementSuffixContext) => void;
/**
* Enter a parse tree produced by `HiveSqlParser.fileFormat`.
* @param ctx the parse tree

View File

@ -90,6 +90,8 @@ import { DropFunctionStatementContext } from "./HiveSqlParser";
import { ReloadFunctionsStatementContext } from "./HiveSqlParser";
import { CreateMacroStatementContext } from "./HiveSqlParser";
import { DropMacroStatementContext } from "./HiveSqlParser";
import { CreateIndexStatementContext } from "./HiveSqlParser";
import { DropIndexStatementContext } from "./HiveSqlParser";
import { CreateViewStatementContext } from "./HiveSqlParser";
import { ViewPartitionContext } from "./HiveSqlParser";
import { ViewOrganizationContext } from "./HiveSqlParser";
@ -289,6 +291,7 @@ import { AlterStatementSuffixCompactContext } from "./HiveSqlParser";
import { AlterStatementSuffixSetOwnerContext } from "./HiveSqlParser";
import { AlterStatementSuffixSetPartSpecContext } from "./HiveSqlParser";
import { AlterStatementSuffixExecuteContext } from "./HiveSqlParser";
import { AlterIndexStatementSuffixContext } from "./HiveSqlParser";
import { FileFormatContext } from "./HiveSqlParser";
import { AlterDataConnectorStatementSuffixContext } from "./HiveSqlParser";
import { AlterDataConnectorSuffixPropertiesContext } from "./HiveSqlParser";
@ -1121,6 +1124,20 @@ export interface HiveSqlParserVisitor<Result> extends ParseTreeVisitor<Result> {
*/
visitDropMacroStatement?: (ctx: DropMacroStatementContext) => Result;
/**
* Visit a parse tree produced by `HiveSqlParser.createIndexStatement`.
* @param ctx the parse tree
* @return the visitor result
*/
visitCreateIndexStatement?: (ctx: CreateIndexStatementContext) => Result;
/**
* Visit a parse tree produced by `HiveSqlParser.dropIndexStatement`.
* @param ctx the parse tree
* @return the visitor result
*/
visitDropIndexStatement?: (ctx: DropIndexStatementContext) => Result;
/**
* Visit a parse tree produced by `HiveSqlParser.createViewStatement`.
* @param ctx the parse tree
@ -2514,6 +2531,13 @@ export interface HiveSqlParserVisitor<Result> extends ParseTreeVisitor<Result> {
*/
visitAlterStatementSuffixExecute?: (ctx: AlterStatementSuffixExecuteContext) => Result;
/**
* Visit a parse tree produced by `HiveSqlParser.alterIndexStatementSuffix`.
* @param ctx the parse tree
* @return the visitor result
*/
visitAlterIndexStatementSuffix?: (ctx: AlterIndexStatementSuffixContext) => Result;
/**
* Visit a parse tree produced by `HiveSqlParser.fileFormat`.
* @param ctx the parse tree