Skip to content

Commit c842dd5

Browse files
committed
fix(impala): check spelling errors for impala g4
1 parent cef0097 commit c842dd5

File tree

5 files changed

+27
-27
lines changed

5 files changed

+27
-27
lines changed

src/grammar/impala/ImpalaSqlParser.g4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ createFunction
132132

133133
alterStatement
134134
: alterDatabase
135-
| alterUnSetOrSetViewTblproperties
135+
| alterUnSetOrSetViewTblProperties
136136
| renameTable
137137
| alterViewOwner
138138
| alterView
@@ -241,7 +241,7 @@ renameTable
241241
: KW_ALTER KW_TABLE tableNamePath KW_RENAME KW_TO tableNamePath
242242
;
243243

244-
alterUnSetOrSetViewTblproperties
244+
alterUnSetOrSetViewTblProperties
245245
: KW_ALTER KW_VIEW viewNamePath (KW_UNSET | KW_SET) KW_TBLPROPERTIES tblProp=properties
246246
;
247247

src/lib/impala/ImpalaSqlParser.interp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ alterView
614614
renameView
615615
alterViewOwner
616616
renameTable
617-
alterUnSetOrSetViewTblproperties
617+
alterUnSetOrSetViewTblProperties
618618
truncateTableStatement
619619
describeStatement
620620
computeStatement

src/lib/impala/ImpalaSqlParser.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ export class ImpalaSqlParser extends SQLParserBase {
337337
public static readonly RULE_renameView = 28;
338338
public static readonly RULE_alterViewOwner = 29;
339339
public static readonly RULE_renameTable = 30;
340-
public static readonly RULE_alterUnSetOrSetViewTblproperties = 31;
340+
public static readonly RULE_alterUnSetOrSetViewTblProperties = 31;
341341
public static readonly RULE_truncateTableStatement = 32;
342342
public static readonly RULE_describeStatement = 33;
343343
public static readonly RULE_computeStatement = 34;
@@ -608,7 +608,7 @@ export class ImpalaSqlParser extends SQLParserBase {
608608
"alterTableOwner", "replaceOrAddColumns", "addSingleColumn", "alterTableNonKuduOrKuduOnly",
609609
"addPartitionByRangeOrValue", "alterFormat", "recoverPartitions",
610610
"dropPartitionByRangeOrValue", "alterView", "renameView", "alterViewOwner",
611-
"renameTable", "alterUnSetOrSetViewTblproperties", "truncateTableStatement",
611+
"renameTable", "alterUnSetOrSetViewTblProperties", "truncateTableStatement",
612612
"describeStatement", "computeStatement", "computeStats", "computeIncrementalStats",
613613
"dropStatement", "dropSchema", "dropView", "dropTable", "dropIncrementalStats",
614614
"dropFunction", "dropRole", "grantStatement", "grantRole", "grant",
@@ -1933,7 +1933,7 @@ export class ImpalaSqlParser extends SQLParserBase {
19331933
this.enterOuterAlt(localContext, 2);
19341934
{
19351935
this.state = 662;
1936-
this.alterUnSetOrSetViewTblproperties();
1936+
this.alterUnSetOrSetViewTblProperties();
19371937
}
19381938
break;
19391939
case 3:
@@ -3038,9 +3038,9 @@ export class ImpalaSqlParser extends SQLParserBase {
30383038
}
30393039
return localContext;
30403040
}
3041-
public alterUnSetOrSetViewTblproperties(): AlterUnSetOrSetViewTblpropertiesContext {
3042-
let localContext = new AlterUnSetOrSetViewTblpropertiesContext(this.context, this.state);
3043-
this.enterRule(localContext, 62, ImpalaSqlParser.RULE_alterUnSetOrSetViewTblproperties);
3041+
public alterUnSetOrSetViewTblProperties(): AlterUnSetOrSetViewTblPropertiesContext {
3042+
let localContext = new AlterUnSetOrSetViewTblPropertiesContext(this.context, this.state);
3043+
this.enterRule(localContext, 62, ImpalaSqlParser.RULE_alterUnSetOrSetViewTblProperties);
30443044
let _la: number;
30453045
try {
30463046
this.enterOuterAlt(localContext, 1);
@@ -15084,8 +15084,8 @@ export class AlterStatementContext extends antlr.ParserRuleContext {
1508415084
public alterDatabase(): AlterDatabaseContext | null {
1508515085
return this.getRuleContext(0, AlterDatabaseContext);
1508615086
}
15087-
public alterUnSetOrSetViewTblproperties(): AlterUnSetOrSetViewTblpropertiesContext | null {
15088-
return this.getRuleContext(0, AlterUnSetOrSetViewTblpropertiesContext);
15087+
public alterUnSetOrSetViewTblProperties(): AlterUnSetOrSetViewTblPropertiesContext | null {
15088+
return this.getRuleContext(0, AlterUnSetOrSetViewTblPropertiesContext);
1508915089
}
1509015090
public renameTable(): RenameTableContext | null {
1509115091
return this.getRuleContext(0, RenameTableContext);
@@ -16119,7 +16119,7 @@ export class RenameTableContext extends antlr.ParserRuleContext {
1611916119
}
1612016120

1612116121

16122-
export class AlterUnSetOrSetViewTblpropertiesContext extends antlr.ParserRuleContext {
16122+
export class AlterUnSetOrSetViewTblPropertiesContext extends antlr.ParserRuleContext {
1612316123
public _tblProp?: PropertiesContext;
1612416124
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
1612516125
super(parent, invokingState);
@@ -16146,21 +16146,21 @@ export class AlterUnSetOrSetViewTblpropertiesContext extends antlr.ParserRuleCon
1614616146
return this.getRuleContext(0, PropertiesContext)!;
1614716147
}
1614816148
public override get ruleIndex(): number {
16149-
return ImpalaSqlParser.RULE_alterUnSetOrSetViewTblproperties;
16149+
return ImpalaSqlParser.RULE_alterUnSetOrSetViewTblProperties;
1615016150
}
1615116151
public override enterRule(listener: ImpalaSqlParserListener): void {
16152-
if(listener.enterAlterUnSetOrSetViewTblproperties) {
16153-
listener.enterAlterUnSetOrSetViewTblproperties(this);
16152+
if(listener.enterAlterUnSetOrSetViewTblProperties) {
16153+
listener.enterAlterUnSetOrSetViewTblProperties(this);
1615416154
}
1615516155
}
1615616156
public override exitRule(listener: ImpalaSqlParserListener): void {
16157-
if(listener.exitAlterUnSetOrSetViewTblproperties) {
16158-
listener.exitAlterUnSetOrSetViewTblproperties(this);
16157+
if(listener.exitAlterUnSetOrSetViewTblProperties) {
16158+
listener.exitAlterUnSetOrSetViewTblProperties(this);
1615916159
}
1616016160
}
1616116161
public override accept<Result>(visitor: ImpalaSqlParserVisitor<Result>): Result | null {
16162-
if (visitor.visitAlterUnSetOrSetViewTblproperties) {
16163-
return visitor.visitAlterUnSetOrSetViewTblproperties(this);
16162+
if (visitor.visitAlterUnSetOrSetViewTblProperties) {
16163+
return visitor.visitAlterUnSetOrSetViewTblProperties(this);
1616416164
} else {
1616516165
return visitor.visitChildren(this);
1616616166
}

src/lib/impala/ImpalaSqlParserListener.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import { AlterViewContext } from "./ImpalaSqlParser.js";
3939
import { RenameViewContext } from "./ImpalaSqlParser.js";
4040
import { AlterViewOwnerContext } from "./ImpalaSqlParser.js";
4141
import { RenameTableContext } from "./ImpalaSqlParser.js";
42-
import { AlterUnSetOrSetViewTblpropertiesContext } from "./ImpalaSqlParser.js";
42+
import { AlterUnSetOrSetViewTblPropertiesContext } from "./ImpalaSqlParser.js";
4343
import { TruncateTableStatementContext } from "./ImpalaSqlParser.js";
4444
import { DescribeStatementContext } from "./ImpalaSqlParser.js";
4545
import { ComputeStatementContext } from "./ImpalaSqlParser.js";
@@ -567,15 +567,15 @@ export class ImpalaSqlParserListener implements ParseTreeListener {
567567
*/
568568
exitRenameTable?: (ctx: RenameTableContext) => void;
569569
/**
570-
* Enter a parse tree produced by `ImpalaSqlParser.alterUnSetOrSetViewTblproperties`.
570+
* Enter a parse tree produced by `ImpalaSqlParser.alterUnSetOrSetViewTblProperties`.
571571
* @param ctx the parse tree
572572
*/
573-
enterAlterUnSetOrSetViewTblproperties?: (ctx: AlterUnSetOrSetViewTblpropertiesContext) => void;
573+
enterAlterUnSetOrSetViewTblProperties?: (ctx: AlterUnSetOrSetViewTblPropertiesContext) => void;
574574
/**
575-
* Exit a parse tree produced by `ImpalaSqlParser.alterUnSetOrSetViewTblproperties`.
575+
* Exit a parse tree produced by `ImpalaSqlParser.alterUnSetOrSetViewTblProperties`.
576576
* @param ctx the parse tree
577577
*/
578-
exitAlterUnSetOrSetViewTblproperties?: (ctx: AlterUnSetOrSetViewTblpropertiesContext) => void;
578+
exitAlterUnSetOrSetViewTblProperties?: (ctx: AlterUnSetOrSetViewTblPropertiesContext) => void;
579579
/**
580580
* Enter a parse tree produced by `ImpalaSqlParser.truncateTableStatement`.
581581
* @param ctx the parse tree

src/lib/impala/ImpalaSqlParserVisitor.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import { AlterViewContext } from "./ImpalaSqlParser.js";
3939
import { RenameViewContext } from "./ImpalaSqlParser.js";
4040
import { AlterViewOwnerContext } from "./ImpalaSqlParser.js";
4141
import { RenameTableContext } from "./ImpalaSqlParser.js";
42-
import { AlterUnSetOrSetViewTblpropertiesContext } from "./ImpalaSqlParser.js";
42+
import { AlterUnSetOrSetViewTblPropertiesContext } from "./ImpalaSqlParser.js";
4343
import { TruncateTableStatementContext } from "./ImpalaSqlParser.js";
4444
import { DescribeStatementContext } from "./ImpalaSqlParser.js";
4545
import { ComputeStatementContext } from "./ImpalaSqlParser.js";
@@ -446,11 +446,11 @@ export class ImpalaSqlParserVisitor<Result> extends AbstractParseTreeVisitor<Res
446446
*/
447447
visitRenameTable?: (ctx: RenameTableContext) => Result;
448448
/**
449-
* Visit a parse tree produced by `ImpalaSqlParser.alterUnSetOrSetViewTblproperties`.
449+
* Visit a parse tree produced by `ImpalaSqlParser.alterUnSetOrSetViewTblProperties`.
450450
* @param ctx the parse tree
451451
* @return the visitor result
452452
*/
453-
visitAlterUnSetOrSetViewTblproperties?: (ctx: AlterUnSetOrSetViewTblpropertiesContext) => Result;
453+
visitAlterUnSetOrSetViewTblProperties?: (ctx: AlterUnSetOrSetViewTblPropertiesContext) => Result;
454454
/**
455455
* Visit a parse tree produced by `ImpalaSqlParser.truncateTableStatement`.
456456
* @param ctx the parse tree

0 commit comments

Comments
 (0)