spark-sql-language-server 0.0.1-beta.1 → 0.0.1-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/sparksql-server-worker.js +1 -1
- package/out/sparksql-server-worker.js.map +1 -1
- package/out-tsc/execute-commands.js.map +1 -1
- package/out-tsc/lib/SparkSqlLexer.js +1731 -1538
- package/out-tsc/lib/SparkSqlLexer.js.map +1 -1
- package/out-tsc/lib/SparkSqlParser.d.ts +239 -187
- package/out-tsc/lib/SparkSqlParser.js +6039 -5655
- package/out-tsc/lib/SparkSqlParser.js.map +1 -1
- package/out-tsc/lib/SparkSqlParserListener.d.ts +6 -0
- package/out-tsc/lib/SparkSqlParserVisitor.d.ts +4 -0
- package/out-tsc/listeners/schema.listener.d.ts +2 -1
- package/out-tsc/listeners/schema.listener.js +11 -0
- package/out-tsc/listeners/schema.listener.js.map +1 -1
- package/out-tsc/lsp-server.js +11 -13
- package/out-tsc/lsp-server.js.map +1 -1
- package/out-tsc/schema-registry.js.map +1 -1
- package/out-tsc/server-worker.js +1 -1
- package/out-tsc/server-worker.js.map +1 -1
- package/package.json +1 -1
|
@@ -415,187 +415,189 @@ export declare class SparkSqlParser extends Parser {
|
|
|
415
415
|
static readonly RULE_useDef = 25;
|
|
416
416
|
static readonly RULE_ddlStatementDef = 26;
|
|
417
417
|
static readonly RULE_alterDatabaseDef = 27;
|
|
418
|
-
static readonly
|
|
419
|
-
static readonly
|
|
420
|
-
static readonly
|
|
421
|
-
static readonly
|
|
422
|
-
static readonly
|
|
423
|
-
static readonly
|
|
424
|
-
static readonly
|
|
425
|
-
static readonly
|
|
426
|
-
static readonly
|
|
427
|
-
static readonly
|
|
428
|
-
static readonly
|
|
429
|
-
static readonly
|
|
430
|
-
static readonly
|
|
431
|
-
static readonly
|
|
432
|
-
static readonly
|
|
433
|
-
static readonly
|
|
434
|
-
static readonly
|
|
435
|
-
static readonly
|
|
436
|
-
static readonly
|
|
437
|
-
static readonly
|
|
438
|
-
static readonly
|
|
439
|
-
static readonly
|
|
440
|
-
static readonly
|
|
441
|
-
static readonly
|
|
442
|
-
static readonly
|
|
443
|
-
static readonly
|
|
444
|
-
static readonly
|
|
445
|
-
static readonly
|
|
446
|
-
static readonly
|
|
447
|
-
static readonly
|
|
448
|
-
static readonly
|
|
449
|
-
static readonly
|
|
450
|
-
static readonly
|
|
451
|
-
static readonly
|
|
452
|
-
static readonly
|
|
453
|
-
static readonly
|
|
454
|
-
static readonly
|
|
455
|
-
static readonly
|
|
456
|
-
static readonly
|
|
457
|
-
static readonly
|
|
458
|
-
static readonly
|
|
459
|
-
static readonly
|
|
460
|
-
static readonly
|
|
461
|
-
static readonly
|
|
462
|
-
static readonly
|
|
463
|
-
static readonly
|
|
464
|
-
static readonly
|
|
465
|
-
static readonly
|
|
466
|
-
static readonly
|
|
467
|
-
static readonly
|
|
468
|
-
static readonly
|
|
469
|
-
static readonly
|
|
470
|
-
static readonly
|
|
471
|
-
static readonly
|
|
472
|
-
static readonly
|
|
473
|
-
static readonly
|
|
474
|
-
static readonly
|
|
475
|
-
static readonly
|
|
476
|
-
static readonly
|
|
477
|
-
static readonly
|
|
478
|
-
static readonly
|
|
479
|
-
static readonly
|
|
480
|
-
static readonly
|
|
481
|
-
static readonly
|
|
482
|
-
static readonly
|
|
483
|
-
static readonly
|
|
484
|
-
static readonly
|
|
485
|
-
static readonly
|
|
486
|
-
static readonly
|
|
487
|
-
static readonly
|
|
488
|
-
static readonly
|
|
489
|
-
static readonly
|
|
490
|
-
static readonly
|
|
491
|
-
static readonly
|
|
492
|
-
static readonly
|
|
493
|
-
static readonly
|
|
494
|
-
static readonly
|
|
495
|
-
static readonly
|
|
496
|
-
static readonly
|
|
497
|
-
static readonly
|
|
498
|
-
static readonly
|
|
499
|
-
static readonly
|
|
500
|
-
static readonly
|
|
501
|
-
static readonly
|
|
502
|
-
static readonly
|
|
503
|
-
static readonly
|
|
504
|
-
static readonly
|
|
505
|
-
static readonly
|
|
506
|
-
static readonly
|
|
507
|
-
static readonly
|
|
508
|
-
static readonly
|
|
509
|
-
static readonly
|
|
510
|
-
static readonly
|
|
511
|
-
static readonly
|
|
512
|
-
static readonly
|
|
513
|
-
static readonly
|
|
514
|
-
static readonly
|
|
515
|
-
static readonly
|
|
516
|
-
static readonly
|
|
517
|
-
static readonly
|
|
518
|
-
static readonly
|
|
519
|
-
static readonly
|
|
520
|
-
static readonly
|
|
521
|
-
static readonly
|
|
522
|
-
static readonly
|
|
523
|
-
static readonly
|
|
524
|
-
static readonly
|
|
525
|
-
static readonly
|
|
526
|
-
static readonly
|
|
527
|
-
static readonly
|
|
528
|
-
static readonly
|
|
529
|
-
static readonly
|
|
530
|
-
static readonly
|
|
531
|
-
static readonly
|
|
532
|
-
static readonly
|
|
533
|
-
static readonly
|
|
534
|
-
static readonly
|
|
535
|
-
static readonly
|
|
536
|
-
static readonly
|
|
537
|
-
static readonly
|
|
538
|
-
static readonly
|
|
539
|
-
static readonly
|
|
540
|
-
static readonly
|
|
541
|
-
static readonly
|
|
542
|
-
static readonly
|
|
543
|
-
static readonly
|
|
544
|
-
static readonly
|
|
545
|
-
static readonly
|
|
546
|
-
static readonly
|
|
547
|
-
static readonly
|
|
548
|
-
static readonly
|
|
549
|
-
static readonly
|
|
550
|
-
static readonly
|
|
551
|
-
static readonly
|
|
552
|
-
static readonly
|
|
553
|
-
static readonly
|
|
554
|
-
static readonly
|
|
555
|
-
static readonly
|
|
556
|
-
static readonly
|
|
557
|
-
static readonly
|
|
558
|
-
static readonly
|
|
559
|
-
static readonly
|
|
560
|
-
static readonly
|
|
561
|
-
static readonly
|
|
562
|
-
static readonly
|
|
563
|
-
static readonly
|
|
564
|
-
static readonly
|
|
565
|
-
static readonly
|
|
566
|
-
static readonly
|
|
567
|
-
static readonly
|
|
568
|
-
static readonly
|
|
569
|
-
static readonly
|
|
570
|
-
static readonly
|
|
571
|
-
static readonly
|
|
572
|
-
static readonly
|
|
573
|
-
static readonly
|
|
574
|
-
static readonly
|
|
575
|
-
static readonly
|
|
576
|
-
static readonly
|
|
577
|
-
static readonly
|
|
578
|
-
static readonly
|
|
579
|
-
static readonly
|
|
580
|
-
static readonly
|
|
581
|
-
static readonly
|
|
582
|
-
static readonly
|
|
583
|
-
static readonly
|
|
584
|
-
static readonly
|
|
585
|
-
static readonly
|
|
586
|
-
static readonly
|
|
587
|
-
static readonly
|
|
588
|
-
static readonly
|
|
589
|
-
static readonly
|
|
590
|
-
static readonly
|
|
591
|
-
static readonly
|
|
592
|
-
static readonly
|
|
593
|
-
static readonly
|
|
594
|
-
static readonly
|
|
595
|
-
static readonly
|
|
596
|
-
static readonly
|
|
597
|
-
static readonly
|
|
598
|
-
static readonly
|
|
418
|
+
static readonly RULE_createDatabaseDef = 28;
|
|
419
|
+
static readonly RULE_dropDatabaseDef = 29;
|
|
420
|
+
static readonly RULE_statementForFolding = 30;
|
|
421
|
+
static readonly RULE_statement = 31;
|
|
422
|
+
static readonly RULE_timezone = 32;
|
|
423
|
+
static readonly RULE_configKey = 33;
|
|
424
|
+
static readonly RULE_configValue = 34;
|
|
425
|
+
static readonly RULE_unsupportedHiveNativeCommands = 35;
|
|
426
|
+
static readonly RULE_createTableHeader = 36;
|
|
427
|
+
static readonly RULE_replaceTableHeader = 37;
|
|
428
|
+
static readonly RULE_bucketSpec = 38;
|
|
429
|
+
static readonly RULE_skewSpec = 39;
|
|
430
|
+
static readonly RULE_locationSpec = 40;
|
|
431
|
+
static readonly RULE_commentSpec = 41;
|
|
432
|
+
static readonly RULE_query = 42;
|
|
433
|
+
static readonly RULE_insertInto = 43;
|
|
434
|
+
static readonly RULE_partitionSpecLocation = 44;
|
|
435
|
+
static readonly RULE_partitionSpec = 45;
|
|
436
|
+
static readonly RULE_partitionVal = 46;
|
|
437
|
+
static readonly RULE_namespace = 47;
|
|
438
|
+
static readonly RULE_namespaces = 48;
|
|
439
|
+
static readonly RULE_describeFuncName = 49;
|
|
440
|
+
static readonly RULE_describeColName = 50;
|
|
441
|
+
static readonly RULE_ctes = 51;
|
|
442
|
+
static readonly RULE_namedQuery = 52;
|
|
443
|
+
static readonly RULE_tableProvider = 53;
|
|
444
|
+
static readonly RULE_createTableClauses = 54;
|
|
445
|
+
static readonly RULE_propertyList = 55;
|
|
446
|
+
static readonly RULE_property = 56;
|
|
447
|
+
static readonly RULE_propertyKey = 57;
|
|
448
|
+
static readonly RULE_propertyValue = 58;
|
|
449
|
+
static readonly RULE_expressionPropertyList = 59;
|
|
450
|
+
static readonly RULE_expressionProperty = 60;
|
|
451
|
+
static readonly RULE_constantList = 61;
|
|
452
|
+
static readonly RULE_nestedConstantList = 62;
|
|
453
|
+
static readonly RULE_createFileFormat = 63;
|
|
454
|
+
static readonly RULE_fileFormat = 64;
|
|
455
|
+
static readonly RULE_storageHandler = 65;
|
|
456
|
+
static readonly RULE_resource = 66;
|
|
457
|
+
static readonly RULE_dmlStatementNoWith = 67;
|
|
458
|
+
static readonly RULE_identifierReference = 68;
|
|
459
|
+
static readonly RULE_queryOrganization = 69;
|
|
460
|
+
static readonly RULE_multiInsertQueryBody = 70;
|
|
461
|
+
static readonly RULE_queryTerm = 71;
|
|
462
|
+
static readonly RULE_queryPrimary = 72;
|
|
463
|
+
static readonly RULE_sortItem = 73;
|
|
464
|
+
static readonly RULE_fromStatement = 74;
|
|
465
|
+
static readonly RULE_fromStatementBody = 75;
|
|
466
|
+
static readonly RULE_querySpecification = 76;
|
|
467
|
+
static readonly RULE_transformClause = 77;
|
|
468
|
+
static readonly RULE_selectClause = 78;
|
|
469
|
+
static readonly RULE_setClause = 79;
|
|
470
|
+
static readonly RULE_matchedClause = 80;
|
|
471
|
+
static readonly RULE_notMatchedClause = 81;
|
|
472
|
+
static readonly RULE_notMatchedBySourceClause = 82;
|
|
473
|
+
static readonly RULE_matchedAction = 83;
|
|
474
|
+
static readonly RULE_notMatchedAction = 84;
|
|
475
|
+
static readonly RULE_notMatchedBySourceAction = 85;
|
|
476
|
+
static readonly RULE_assignmentList = 86;
|
|
477
|
+
static readonly RULE_assignment = 87;
|
|
478
|
+
static readonly RULE_whereClause = 88;
|
|
479
|
+
static readonly RULE_havingClause = 89;
|
|
480
|
+
static readonly RULE_hint = 90;
|
|
481
|
+
static readonly RULE_hintStatement = 91;
|
|
482
|
+
static readonly RULE_fromClause = 92;
|
|
483
|
+
static readonly RULE_temporalClause = 93;
|
|
484
|
+
static readonly RULE_aggregationClause = 94;
|
|
485
|
+
static readonly RULE_groupByClause = 95;
|
|
486
|
+
static readonly RULE_groupingAnalytics = 96;
|
|
487
|
+
static readonly RULE_groupingElement = 97;
|
|
488
|
+
static readonly RULE_groupingSet = 98;
|
|
489
|
+
static readonly RULE_pivotClause = 99;
|
|
490
|
+
static readonly RULE_pivotColumn = 100;
|
|
491
|
+
static readonly RULE_pivotValue = 101;
|
|
492
|
+
static readonly RULE_unpivotClause = 102;
|
|
493
|
+
static readonly RULE_unpivotNullClause = 103;
|
|
494
|
+
static readonly RULE_unpivotOperator = 104;
|
|
495
|
+
static readonly RULE_unpivotSingleValueColumnClause = 105;
|
|
496
|
+
static readonly RULE_unpivotMultiValueColumnClause = 106;
|
|
497
|
+
static readonly RULE_unpivotColumnSet = 107;
|
|
498
|
+
static readonly RULE_unpivotValueColumn = 108;
|
|
499
|
+
static readonly RULE_unpivotNameColumn = 109;
|
|
500
|
+
static readonly RULE_unpivotColumnAndAlias = 110;
|
|
501
|
+
static readonly RULE_unpivotColumn = 111;
|
|
502
|
+
static readonly RULE_unpivotAlias = 112;
|
|
503
|
+
static readonly RULE_lateralView = 113;
|
|
504
|
+
static readonly RULE_setQuantifier = 114;
|
|
505
|
+
static readonly RULE_relation = 115;
|
|
506
|
+
static readonly RULE_relationExtension = 116;
|
|
507
|
+
static readonly RULE_joinRelation = 117;
|
|
508
|
+
static readonly RULE_joinType = 118;
|
|
509
|
+
static readonly RULE_joinCriteria = 119;
|
|
510
|
+
static readonly RULE_sample = 120;
|
|
511
|
+
static readonly RULE_sampleMethod = 121;
|
|
512
|
+
static readonly RULE_identifierList = 122;
|
|
513
|
+
static readonly RULE_identifierSeq = 123;
|
|
514
|
+
static readonly RULE_orderedIdentifierList = 124;
|
|
515
|
+
static readonly RULE_orderedIdentifier = 125;
|
|
516
|
+
static readonly RULE_identifierCommentList = 126;
|
|
517
|
+
static readonly RULE_identifierComment = 127;
|
|
518
|
+
static readonly RULE_relationPrimary = 128;
|
|
519
|
+
static readonly RULE_inlineTable = 129;
|
|
520
|
+
static readonly RULE_functionTableSubqueryArgument = 130;
|
|
521
|
+
static readonly RULE_tableArgumentPartitioning = 131;
|
|
522
|
+
static readonly RULE_functionTableNamedArgumentExpression = 132;
|
|
523
|
+
static readonly RULE_functionTableReferenceArgument = 133;
|
|
524
|
+
static readonly RULE_functionTableArgument = 134;
|
|
525
|
+
static readonly RULE_functionTable = 135;
|
|
526
|
+
static readonly RULE_tableAlias = 136;
|
|
527
|
+
static readonly RULE_rowFormat = 137;
|
|
528
|
+
static readonly RULE_multipartIdentifierList = 138;
|
|
529
|
+
static readonly RULE_multipartIdentifier = 139;
|
|
530
|
+
static readonly RULE_multipartIdentifierPropertyList = 140;
|
|
531
|
+
static readonly RULE_multipartIdentifierProperty = 141;
|
|
532
|
+
static readonly RULE_tableIdentifier = 142;
|
|
533
|
+
static readonly RULE_functionIdentifier = 143;
|
|
534
|
+
static readonly RULE_namedExpression = 144;
|
|
535
|
+
static readonly RULE_namedExpressionSeq = 145;
|
|
536
|
+
static readonly RULE_partitionFieldList = 146;
|
|
537
|
+
static readonly RULE_partitionField = 147;
|
|
538
|
+
static readonly RULE_transform = 148;
|
|
539
|
+
static readonly RULE_transformArgument = 149;
|
|
540
|
+
static readonly RULE_expression = 150;
|
|
541
|
+
static readonly RULE_namedArgumentExpression = 151;
|
|
542
|
+
static readonly RULE_functionArgument = 152;
|
|
543
|
+
static readonly RULE_expressionSeq = 153;
|
|
544
|
+
static readonly RULE_booleanExpression = 154;
|
|
545
|
+
static readonly RULE_predicate = 155;
|
|
546
|
+
static readonly RULE_valueExpression = 156;
|
|
547
|
+
static readonly RULE_datetimeUnit = 157;
|
|
548
|
+
static readonly RULE_primaryExpression = 158;
|
|
549
|
+
static readonly RULE_literalType = 159;
|
|
550
|
+
static readonly RULE_constant = 160;
|
|
551
|
+
static readonly RULE_comparisonOperator = 161;
|
|
552
|
+
static readonly RULE_arithmeticOperator = 162;
|
|
553
|
+
static readonly RULE_predicateOperator = 163;
|
|
554
|
+
static readonly RULE_booleanValue = 164;
|
|
555
|
+
static readonly RULE_interval = 165;
|
|
556
|
+
static readonly RULE_errorCapturingMultiUnitsInterval = 166;
|
|
557
|
+
static readonly RULE_multiUnitsInterval = 167;
|
|
558
|
+
static readonly RULE_errorCapturingUnitToUnitInterval = 168;
|
|
559
|
+
static readonly RULE_unitToUnitInterval = 169;
|
|
560
|
+
static readonly RULE_intervalValue = 170;
|
|
561
|
+
static readonly RULE_unitInMultiUnits = 171;
|
|
562
|
+
static readonly RULE_unitInUnitToUnit = 172;
|
|
563
|
+
static readonly RULE_colPosition = 173;
|
|
564
|
+
static readonly RULE_type = 174;
|
|
565
|
+
static readonly RULE_dataType = 175;
|
|
566
|
+
static readonly RULE_qualifiedColTypeWithPositionList = 176;
|
|
567
|
+
static readonly RULE_qualifiedColTypeWithPosition = 177;
|
|
568
|
+
static readonly RULE_colDefinitionDescriptorWithPosition = 178;
|
|
569
|
+
static readonly RULE_defaultExpression = 179;
|
|
570
|
+
static readonly RULE_colTypeList = 180;
|
|
571
|
+
static readonly RULE_colType = 181;
|
|
572
|
+
static readonly RULE_createOrReplaceTableColTypeList = 182;
|
|
573
|
+
static readonly RULE_createOrReplaceTableColType = 183;
|
|
574
|
+
static readonly RULE_colDefinitionOption = 184;
|
|
575
|
+
static readonly RULE_generationExpression = 185;
|
|
576
|
+
static readonly RULE_complexColTypeList = 186;
|
|
577
|
+
static readonly RULE_complexColType = 187;
|
|
578
|
+
static readonly RULE_whenClause = 188;
|
|
579
|
+
static readonly RULE_windowClause = 189;
|
|
580
|
+
static readonly RULE_namedWindow = 190;
|
|
581
|
+
static readonly RULE_windowSpec = 191;
|
|
582
|
+
static readonly RULE_windowFrame = 192;
|
|
583
|
+
static readonly RULE_frameBound = 193;
|
|
584
|
+
static readonly RULE_qualifiedNameList = 194;
|
|
585
|
+
static readonly RULE_functionName = 195;
|
|
586
|
+
static readonly RULE_qualifiedName = 196;
|
|
587
|
+
static readonly RULE_errorCapturingIdentifier = 197;
|
|
588
|
+
static readonly RULE_errorCapturingIdentifierExtra = 198;
|
|
589
|
+
static readonly RULE_identifier = 199;
|
|
590
|
+
static readonly RULE_strictIdentifier = 200;
|
|
591
|
+
static readonly RULE_quotedIdentifier = 201;
|
|
592
|
+
static readonly RULE_backQuotedIdentifier = 202;
|
|
593
|
+
static readonly RULE_number = 203;
|
|
594
|
+
static readonly RULE_alterColumnAction = 204;
|
|
595
|
+
static readonly RULE_stringLit = 205;
|
|
596
|
+
static readonly RULE_comment = 206;
|
|
597
|
+
static readonly RULE_version = 207;
|
|
598
|
+
static readonly RULE_ansiNonReserved = 208;
|
|
599
|
+
static readonly RULE_strictNonReserved = 209;
|
|
600
|
+
static readonly RULE_nonReserved = 210;
|
|
599
601
|
static readonly ruleNames: string[];
|
|
600
602
|
private static readonly _LITERAL_NAMES;
|
|
601
603
|
private static readonly _SYMBOLIC_NAMES;
|
|
@@ -638,6 +640,8 @@ export declare class SparkSqlParser extends Parser {
|
|
|
638
640
|
useDef(): UseDefContext;
|
|
639
641
|
ddlStatementDef(): DdlStatementDefContext;
|
|
640
642
|
alterDatabaseDef(): AlterDatabaseDefContext;
|
|
643
|
+
createDatabaseDef(): CreateDatabaseDefContext;
|
|
644
|
+
dropDatabaseDef(): DropDatabaseDefContext;
|
|
641
645
|
statementForFolding(): StatementForFoldingContext;
|
|
642
646
|
statement(): StatementContext;
|
|
643
647
|
timezone(): TimezoneContext;
|
|
@@ -1104,6 +1108,8 @@ export declare class UseDefContext extends ParserRuleContext {
|
|
|
1104
1108
|
CATALOG(): TerminalNode | undefined;
|
|
1105
1109
|
catalogDef(): CatalogDefContext | undefined;
|
|
1106
1110
|
databaseDef(): DatabaseDefContext | undefined;
|
|
1111
|
+
DATABASE(): TerminalNode | undefined;
|
|
1112
|
+
SCHEMA(): TerminalNode | undefined;
|
|
1107
1113
|
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
1108
1114
|
get ruleIndex(): number;
|
|
1109
1115
|
enterRule(listener: SparkSqlParserListener): void;
|
|
@@ -1111,7 +1117,9 @@ export declare class UseDefContext extends ParserRuleContext {
|
|
|
1111
1117
|
accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result;
|
|
1112
1118
|
}
|
|
1113
1119
|
export declare class DdlStatementDefContext extends ParserRuleContext {
|
|
1114
|
-
alterDatabaseDef(): AlterDatabaseDefContext;
|
|
1120
|
+
alterDatabaseDef(): AlterDatabaseDefContext | undefined;
|
|
1121
|
+
createDatabaseDef(): CreateDatabaseDefContext | undefined;
|
|
1122
|
+
dropDatabaseDef(): DropDatabaseDefContext | undefined;
|
|
1115
1123
|
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
1116
1124
|
get ruleIndex(): number;
|
|
1117
1125
|
enterRule(listener: SparkSqlParserListener): void;
|
|
@@ -1134,6 +1142,47 @@ export declare class AlterDatabaseDefContext extends ParserRuleContext {
|
|
|
1134
1142
|
exitRule(listener: SparkSqlParserListener): void;
|
|
1135
1143
|
accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result;
|
|
1136
1144
|
}
|
|
1145
|
+
export declare class CreateDatabaseDefContext extends ParserRuleContext {
|
|
1146
|
+
CREATE(): TerminalNode;
|
|
1147
|
+
databaseDef(): DatabaseDefContext;
|
|
1148
|
+
DATABASE(): TerminalNode | undefined;
|
|
1149
|
+
SCHEMA(): TerminalNode | undefined;
|
|
1150
|
+
IF(): TerminalNode | undefined;
|
|
1151
|
+
NOT(): TerminalNode | undefined;
|
|
1152
|
+
EXISTS(): TerminalNode | undefined;
|
|
1153
|
+
commentSpec(): CommentSpecContext[];
|
|
1154
|
+
commentSpec(i: number): CommentSpecContext;
|
|
1155
|
+
locationSpec(): LocationSpecContext[];
|
|
1156
|
+
locationSpec(i: number): LocationSpecContext;
|
|
1157
|
+
WITH(): TerminalNode[];
|
|
1158
|
+
WITH(i: number): TerminalNode;
|
|
1159
|
+
propertyList(): PropertyListContext[];
|
|
1160
|
+
propertyList(i: number): PropertyListContext;
|
|
1161
|
+
DBPROPERTIES(): TerminalNode[];
|
|
1162
|
+
DBPROPERTIES(i: number): TerminalNode;
|
|
1163
|
+
PROPERTIES(): TerminalNode[];
|
|
1164
|
+
PROPERTIES(i: number): TerminalNode;
|
|
1165
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
1166
|
+
get ruleIndex(): number;
|
|
1167
|
+
enterRule(listener: SparkSqlParserListener): void;
|
|
1168
|
+
exitRule(listener: SparkSqlParserListener): void;
|
|
1169
|
+
accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result;
|
|
1170
|
+
}
|
|
1171
|
+
export declare class DropDatabaseDefContext extends ParserRuleContext {
|
|
1172
|
+
DROP(): TerminalNode;
|
|
1173
|
+
databaseDef(): DatabaseDefContext;
|
|
1174
|
+
DATABASE(): TerminalNode | undefined;
|
|
1175
|
+
SCHEMA(): TerminalNode | undefined;
|
|
1176
|
+
IF(): TerminalNode | undefined;
|
|
1177
|
+
EXISTS(): TerminalNode | undefined;
|
|
1178
|
+
RESTRICT(): TerminalNode | undefined;
|
|
1179
|
+
CASCADE(): TerminalNode | undefined;
|
|
1180
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
1181
|
+
get ruleIndex(): number;
|
|
1182
|
+
enterRule(listener: SparkSqlParserListener): void;
|
|
1183
|
+
exitRule(listener: SparkSqlParserListener): void;
|
|
1184
|
+
accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result;
|
|
1185
|
+
}
|
|
1137
1186
|
export declare class StatementForFoldingContext extends ParserRuleContext {
|
|
1138
1187
|
statement(): StatementContext;
|
|
1139
1188
|
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
@@ -1205,6 +1254,7 @@ export declare class SetCatalogContext extends StatementContext {
|
|
|
1205
1254
|
CATALOG(): TerminalNode;
|
|
1206
1255
|
identifier(): IdentifierContext | undefined;
|
|
1207
1256
|
stringLit(): StringLitContext | undefined;
|
|
1257
|
+
catalogDef(): CatalogDefContext | undefined;
|
|
1208
1258
|
constructor(ctx: StatementContext);
|
|
1209
1259
|
enterRule(listener: SparkSqlParserListener): void;
|
|
1210
1260
|
exitRule(listener: SparkSqlParserListener): void;
|
|
@@ -1213,8 +1263,7 @@ export declare class SetCatalogContext extends StatementContext {
|
|
|
1213
1263
|
export declare class CreateNamespaceContext extends StatementContext {
|
|
1214
1264
|
CREATE(): TerminalNode;
|
|
1215
1265
|
namespace(): NamespaceContext;
|
|
1216
|
-
|
|
1217
|
-
identifierReference(): IdentifierReferenceContext | undefined;
|
|
1266
|
+
identifierReference(): IdentifierReferenceContext;
|
|
1218
1267
|
IF(): TerminalNode | undefined;
|
|
1219
1268
|
NOT(): TerminalNode | undefined;
|
|
1220
1269
|
EXISTS(): TerminalNode | undefined;
|
|
@@ -1346,9 +1395,10 @@ export declare class ReplaceTableContext extends StatementContext {
|
|
|
1346
1395
|
export declare class AnalyzeContext extends StatementContext {
|
|
1347
1396
|
ANALYZE(): TerminalNode;
|
|
1348
1397
|
TABLE(): TerminalNode;
|
|
1349
|
-
identifierReference(): IdentifierReferenceContext;
|
|
1350
1398
|
COMPUTE(): TerminalNode;
|
|
1351
1399
|
STATISTICS(): TerminalNode;
|
|
1400
|
+
tableDef(): TableDefContext | undefined;
|
|
1401
|
+
identifierReference(): IdentifierReferenceContext | undefined;
|
|
1352
1402
|
partitionSpec(): PartitionSpecContext | undefined;
|
|
1353
1403
|
identifier(): IdentifierContext | undefined;
|
|
1354
1404
|
FOR(): TerminalNode | undefined;
|
|
@@ -1365,10 +1415,11 @@ export declare class AnalyzeTablesContext extends StatementContext {
|
|
|
1365
1415
|
TABLES(): TerminalNode;
|
|
1366
1416
|
COMPUTE(): TerminalNode;
|
|
1367
1417
|
STATISTICS(): TerminalNode;
|
|
1368
|
-
identifierReference(): IdentifierReferenceContext | undefined;
|
|
1369
1418
|
identifier(): IdentifierContext | undefined;
|
|
1370
1419
|
FROM(): TerminalNode | undefined;
|
|
1371
1420
|
IN(): TerminalNode | undefined;
|
|
1421
|
+
tableDef(): TableDefContext | undefined;
|
|
1422
|
+
identifierReference(): IdentifierReferenceContext | undefined;
|
|
1372
1423
|
constructor(ctx: StatementContext);
|
|
1373
1424
|
enterRule(listener: SparkSqlParserListener): void;
|
|
1374
1425
|
exitRule(listener: SparkSqlParserListener): void;
|
|
@@ -1378,11 +1429,12 @@ export declare class AddTableColumnsContext extends StatementContext {
|
|
|
1378
1429
|
_columns: QualifiedColTypeWithPositionListContext;
|
|
1379
1430
|
ALTER(): TerminalNode;
|
|
1380
1431
|
TABLE(): TerminalNode;
|
|
1381
|
-
identifierReference(): IdentifierReferenceContext;
|
|
1382
1432
|
ADD(): TerminalNode;
|
|
1383
1433
|
COLUMN(): TerminalNode | undefined;
|
|
1384
1434
|
COLUMNS(): TerminalNode | undefined;
|
|
1385
1435
|
qualifiedColTypeWithPositionList(): QualifiedColTypeWithPositionListContext;
|
|
1436
|
+
tableDef(): TableDefContext | undefined;
|
|
1437
|
+
identifierReference(): IdentifierReferenceContext | undefined;
|
|
1386
1438
|
LEFT_PAREN(): TerminalNode | undefined;
|
|
1387
1439
|
RIGHT_PAREN(): TerminalNode | undefined;
|
|
1388
1440
|
constructor(ctx: StatementContext);
|