Skip to content

Commit cbfd5b1

Browse files
committed
feat(impala): check spelling errors for impala g4
1 parent 36de8c2 commit cbfd5b1

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;
@@ -610,7 +610,7 @@ export class ImpalaSqlParser extends SQLParserBase {
610610
"alterTableOwner", "replaceOrAddColumns", "addSingleColumn", "alterTableNonKuduOrKuduOnly",
611611
"addPartitionByRangeOrValue", "alterFormat", "recoverPartitions",
612612
"dropPartitionByRangeOrValue", "alterView", "renameView", "alterViewOwner",
613-
"renameTable", "alterUnSetOrSetViewTblproperties", "truncateTableStatement",
613+
"renameTable", "alterUnSetOrSetViewTblProperties", "truncateTableStatement",
614614
"describeStatement", "computeStatement", "computeStats", "computeIncrementalStats",
615615
"dropStatement", "dropSchema", "dropView", "dropTable", "dropIncrementalStats",
616616
"dropFunction", "dropRole", "grantStatement", "grantRole", "grant",
@@ -1930,7 +1930,7 @@ export class ImpalaSqlParser extends SQLParserBase {
19301930
this.enterOuterAlt(localContext, 2);
19311931
{
19321932
this.state = 663;
1933-
this.alterUnSetOrSetViewTblproperties();
1933+
this.alterUnSetOrSetViewTblProperties();
19341934
}
19351935
break;
19361936
case 3:
@@ -3035,9 +3035,9 @@ export class ImpalaSqlParser extends SQLParserBase {
30353035
}
30363036
return localContext;
30373037
}
3038-
public alterUnSetOrSetViewTblproperties(): AlterUnSetOrSetViewTblpropertiesContext {
3039-
let localContext = new AlterUnSetOrSetViewTblpropertiesContext(this.context, this.state);
3040-
this.enterRule(localContext, 62, ImpalaSqlParser.RULE_alterUnSetOrSetViewTblproperties);
3038+
public alterUnSetOrSetViewTblProperties(): AlterUnSetOrSetViewTblPropertiesContext {
3039+
let localContext = new AlterUnSetOrSetViewTblPropertiesContext(this.context, this.state);
3040+
this.enterRule(localContext, 62, ImpalaSqlParser.RULE_alterUnSetOrSetViewTblProperties);
30413041
let _la: number;
30423042
try {
30433043
this.enterOuterAlt(localContext, 1);
@@ -15118,8 +15118,8 @@ export class AlterStatementContext extends antlr.ParserRuleContext {
1511815118
public alterDatabase(): AlterDatabaseContext | null {
1511915119
return this.getRuleContext(0, AlterDatabaseContext);
1512015120
}
15121-
public alterUnSetOrSetViewTblproperties(): AlterUnSetOrSetViewTblpropertiesContext | null {
15122-
return this.getRuleContext(0, AlterUnSetOrSetViewTblpropertiesContext);
15121+
public alterUnSetOrSetViewTblProperties(): AlterUnSetOrSetViewTblPropertiesContext | null {
15122+
return this.getRuleContext(0, AlterUnSetOrSetViewTblPropertiesContext);
1512315123
}
1512415124
public renameTable(): RenameTableContext | null {
1512515125
return this.getRuleContext(0, RenameTableContext);
@@ -16153,7 +16153,7 @@ export class RenameTableContext extends antlr.ParserRuleContext {
1615316153
}
1615416154

1615516155

16156-
export class AlterUnSetOrSetViewTblpropertiesContext extends antlr.ParserRuleContext {
16156+
export class AlterUnSetOrSetViewTblPropertiesContext extends antlr.ParserRuleContext {
1615716157
public _tblProp?: PropertiesContext;
1615816158
public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
1615916159
super(parent, invokingState);
@@ -16180,21 +16180,21 @@ export class AlterUnSetOrSetViewTblpropertiesContext extends antlr.ParserRuleCon
1618016180
return this.getRuleContext(0, PropertiesContext)!;
1618116181
}
1618216182
public override get ruleIndex(): number {
16183-
return ImpalaSqlParser.RULE_alterUnSetOrSetViewTblproperties;
16183+
return ImpalaSqlParser.RULE_alterUnSetOrSetViewTblProperties;
1618416184
}
1618516185
public override enterRule(listener: ImpalaSqlParserListener): void {
16186-
if(listener.enterAlterUnSetOrSetViewTblproperties) {
16187-
listener.enterAlterUnSetOrSetViewTblproperties(this);
16186+
if(listener.enterAlterUnSetOrSetViewTblProperties) {
16187+
listener.enterAlterUnSetOrSetViewTblProperties(this);
1618816188
}
1618916189
}
1619016190
public override exitRule(listener: ImpalaSqlParserListener): void {
16191-
if(listener.exitAlterUnSetOrSetViewTblproperties) {
16192-
listener.exitAlterUnSetOrSetViewTblproperties(this);
16191+
if(listener.exitAlterUnSetOrSetViewTblProperties) {
16192+
listener.exitAlterUnSetOrSetViewTblProperties(this);
1619316193
}
1619416194
}
1619516195
public override accept<Result>(visitor: ImpalaSqlParserVisitor<Result>): Result | null {
16196-
if (visitor.visitAlterUnSetOrSetViewTblproperties) {
16197-
return visitor.visitAlterUnSetOrSetViewTblproperties(this);
16196+
if (visitor.visitAlterUnSetOrSetViewTblProperties) {
16197+
return visitor.visitAlterUnSetOrSetViewTblProperties(this);
1619816198
} else {
1619916199
return visitor.visitChildren(this);
1620016200
}

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";
@@ -569,15 +569,15 @@ export class ImpalaSqlParserListener implements ParseTreeListener {
569569
*/
570570
exitRenameTable?: (ctx: RenameTableContext) => void;
571571
/**
572-
* Enter a parse tree produced by `ImpalaSqlParser.alterUnSetOrSetViewTblproperties`.
572+
* Enter a parse tree produced by `ImpalaSqlParser.alterUnSetOrSetViewTblProperties`.
573573
* @param ctx the parse tree
574574
*/
575-
enterAlterUnSetOrSetViewTblproperties?: (ctx: AlterUnSetOrSetViewTblpropertiesContext) => void;
575+
enterAlterUnSetOrSetViewTblProperties?: (ctx: AlterUnSetOrSetViewTblPropertiesContext) => void;
576576
/**
577-
* Exit a parse tree produced by `ImpalaSqlParser.alterUnSetOrSetViewTblproperties`.
577+
* Exit a parse tree produced by `ImpalaSqlParser.alterUnSetOrSetViewTblProperties`.
578578
* @param ctx the parse tree
579579
*/
580-
exitAlterUnSetOrSetViewTblproperties?: (ctx: AlterUnSetOrSetViewTblpropertiesContext) => void;
580+
exitAlterUnSetOrSetViewTblProperties?: (ctx: AlterUnSetOrSetViewTblPropertiesContext) => void;
581581
/**
582582
* Enter a parse tree produced by `ImpalaSqlParser.truncateTableStatement`.
583583
* @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";
@@ -448,11 +448,11 @@ export class ImpalaSqlParserVisitor<Result> extends AbstractParseTreeVisitor<Res
448448
*/
449449
visitRenameTable?: (ctx: RenameTableContext) => Result;
450450
/**
451-
* Visit a parse tree produced by `ImpalaSqlParser.alterUnSetOrSetViewTblproperties`.
451+
* Visit a parse tree produced by `ImpalaSqlParser.alterUnSetOrSetViewTblProperties`.
452452
* @param ctx the parse tree
453453
* @return the visitor result
454454
*/
455-
visitAlterUnSetOrSetViewTblproperties?: (ctx: AlterUnSetOrSetViewTblpropertiesContext) => Result;
455+
visitAlterUnSetOrSetViewTblProperties?: (ctx: AlterUnSetOrSetViewTblPropertiesContext) => Result;
456456
/**
457457
* Visit a parse tree produced by `ImpalaSqlParser.truncateTableStatement`.
458458
* @param ctx the parse tree

0 commit comments

Comments
 (0)