spark-sql-language-server 0.0.1-beta.0 → 0.0.1-beta.1

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.
Files changed (41) hide show
  1. package/out/sparksql-server-worker.js +1 -1
  2. package/out/sparksql-server-worker.js.map +1 -1
  3. package/out-tsc/constant.d.ts +1 -0
  4. package/out-tsc/constant.js +2 -1
  5. package/out-tsc/constant.js.map +1 -1
  6. package/out-tsc/cursor.d.ts +21 -0
  7. package/out-tsc/cursor.js +37 -0
  8. package/out-tsc/cursor.js.map +1 -0
  9. package/out-tsc/execute-commands.d.ts +4 -0
  10. package/out-tsc/execute-commands.js +21 -0
  11. package/out-tsc/execute-commands.js.map +1 -0
  12. package/out-tsc/lib/SparkSqlLexer.js +1761 -1705
  13. package/out-tsc/lib/SparkSqlLexer.js.map +1 -1
  14. package/out-tsc/lib/SparkSqlParser.d.ts +439 -184
  15. package/out-tsc/lib/SparkSqlParser.js +13883 -12285
  16. package/out-tsc/lib/SparkSqlParser.js.map +1 -1
  17. package/out-tsc/lib/SparkSqlParserListener.d.ts +192 -120
  18. package/out-tsc/lib/SparkSqlParserVisitor.d.ts +128 -80
  19. package/out-tsc/listeners/schema.listener.d.ts +54 -0
  20. package/out-tsc/listeners/schema.listener.js +89 -0
  21. package/out-tsc/listeners/schema.listener.js.map +1 -0
  22. package/out-tsc/lsp-server.d.ts +4 -1
  23. package/out-tsc/lsp-server.js +169 -2
  24. package/out-tsc/lsp-server.js.map +1 -1
  25. package/out-tsc/metadata.typing.d.ts +21 -0
  26. package/out-tsc/metadata.typing.js +3 -0
  27. package/out-tsc/metadata.typing.js.map +1 -0
  28. package/out-tsc/parsing-warehouse.js +1 -1
  29. package/out-tsc/parsing-warehouse.js.map +1 -1
  30. package/out-tsc/schema-registry.d.ts +119 -0
  31. package/out-tsc/schema-registry.js +215 -0
  32. package/out-tsc/schema-registry.js.map +1 -0
  33. package/out-tsc/server-worker.js +5 -1
  34. package/out-tsc/server-worker.js.map +1 -1
  35. package/out-tsc/utils.d.ts +3 -0
  36. package/out-tsc/utils.js +19 -0
  37. package/out-tsc/utils.js.map +1 -0
  38. package/package.json +1 -1
  39. package/out-tsc/auto-completion.d.ts +0 -4
  40. package/out-tsc/auto-completion.js +0 -74
  41. package/out-tsc/auto-completion.js.map +0 -1
@@ -397,187 +397,205 @@ export declare class SparkSqlParser extends Parser {
397
397
  static readonly RULE_singleFunctionIdentifier = 7;
398
398
  static readonly RULE_singleDataType = 8;
399
399
  static readonly RULE_singleTableSchema = 9;
400
- static readonly RULE_statementForFolding = 10;
401
- static readonly RULE_statement = 11;
402
- static readonly RULE_timezone = 12;
403
- static readonly RULE_configKey = 13;
404
- static readonly RULE_configValue = 14;
405
- static readonly RULE_unsupportedHiveNativeCommands = 15;
406
- static readonly RULE_createTableHeader = 16;
407
- static readonly RULE_replaceTableHeader = 17;
408
- static readonly RULE_bucketSpec = 18;
409
- static readonly RULE_skewSpec = 19;
410
- static readonly RULE_locationSpec = 20;
411
- static readonly RULE_commentSpec = 21;
412
- static readonly RULE_query = 22;
413
- static readonly RULE_insertInto = 23;
414
- static readonly RULE_partitionSpecLocation = 24;
415
- static readonly RULE_partitionSpec = 25;
416
- static readonly RULE_partitionVal = 26;
417
- static readonly RULE_namespace = 27;
418
- static readonly RULE_namespaces = 28;
419
- static readonly RULE_describeFuncName = 29;
420
- static readonly RULE_describeColName = 30;
421
- static readonly RULE_ctes = 31;
422
- static readonly RULE_namedQuery = 32;
423
- static readonly RULE_tableProvider = 33;
424
- static readonly RULE_createTableClauses = 34;
425
- static readonly RULE_propertyList = 35;
426
- static readonly RULE_property = 36;
427
- static readonly RULE_propertyKey = 37;
428
- static readonly RULE_propertyValue = 38;
429
- static readonly RULE_expressionPropertyList = 39;
430
- static readonly RULE_expressionProperty = 40;
431
- static readonly RULE_constantList = 41;
432
- static readonly RULE_nestedConstantList = 42;
433
- static readonly RULE_createFileFormat = 43;
434
- static readonly RULE_fileFormat = 44;
435
- static readonly RULE_storageHandler = 45;
436
- static readonly RULE_resource = 46;
437
- static readonly RULE_dmlStatementNoWith = 47;
438
- static readonly RULE_identifierReference = 48;
439
- static readonly RULE_queryOrganization = 49;
440
- static readonly RULE_multiInsertQueryBody = 50;
441
- static readonly RULE_queryTerm = 51;
442
- static readonly RULE_queryPrimary = 52;
443
- static readonly RULE_sortItem = 53;
444
- static readonly RULE_fromStatement = 54;
445
- static readonly RULE_fromStatementBody = 55;
446
- static readonly RULE_querySpecification = 56;
447
- static readonly RULE_transformClause = 57;
448
- static readonly RULE_selectClause = 58;
449
- static readonly RULE_setClause = 59;
450
- static readonly RULE_matchedClause = 60;
451
- static readonly RULE_notMatchedClause = 61;
452
- static readonly RULE_notMatchedBySourceClause = 62;
453
- static readonly RULE_matchedAction = 63;
454
- static readonly RULE_notMatchedAction = 64;
455
- static readonly RULE_notMatchedBySourceAction = 65;
456
- static readonly RULE_assignmentList = 66;
457
- static readonly RULE_assignment = 67;
458
- static readonly RULE_whereClause = 68;
459
- static readonly RULE_havingClause = 69;
460
- static readonly RULE_hint = 70;
461
- static readonly RULE_hintStatement = 71;
462
- static readonly RULE_fromClause = 72;
463
- static readonly RULE_temporalClause = 73;
464
- static readonly RULE_aggregationClause = 74;
465
- static readonly RULE_groupByClause = 75;
466
- static readonly RULE_groupingAnalytics = 76;
467
- static readonly RULE_groupingElement = 77;
468
- static readonly RULE_groupingSet = 78;
469
- static readonly RULE_pivotClause = 79;
470
- static readonly RULE_pivotColumn = 80;
471
- static readonly RULE_pivotValue = 81;
472
- static readonly RULE_unpivotClause = 82;
473
- static readonly RULE_unpivotNullClause = 83;
474
- static readonly RULE_unpivotOperator = 84;
475
- static readonly RULE_unpivotSingleValueColumnClause = 85;
476
- static readonly RULE_unpivotMultiValueColumnClause = 86;
477
- static readonly RULE_unpivotColumnSet = 87;
478
- static readonly RULE_unpivotValueColumn = 88;
479
- static readonly RULE_unpivotNameColumn = 89;
480
- static readonly RULE_unpivotColumnAndAlias = 90;
481
- static readonly RULE_unpivotColumn = 91;
482
- static readonly RULE_unpivotAlias = 92;
483
- static readonly RULE_lateralView = 93;
484
- static readonly RULE_setQuantifier = 94;
485
- static readonly RULE_relation = 95;
486
- static readonly RULE_relationExtension = 96;
487
- static readonly RULE_joinRelation = 97;
488
- static readonly RULE_joinType = 98;
489
- static readonly RULE_joinCriteria = 99;
490
- static readonly RULE_sample = 100;
491
- static readonly RULE_sampleMethod = 101;
492
- static readonly RULE_identifierList = 102;
493
- static readonly RULE_identifierSeq = 103;
494
- static readonly RULE_orderedIdentifierList = 104;
495
- static readonly RULE_orderedIdentifier = 105;
496
- static readonly RULE_identifierCommentList = 106;
497
- static readonly RULE_identifierComment = 107;
498
- static readonly RULE_relationPrimary = 108;
499
- static readonly RULE_inlineTable = 109;
500
- static readonly RULE_functionTableSubqueryArgument = 110;
501
- static readonly RULE_tableArgumentPartitioning = 111;
502
- static readonly RULE_functionTableNamedArgumentExpression = 112;
503
- static readonly RULE_functionTableReferenceArgument = 113;
504
- static readonly RULE_functionTableArgument = 114;
505
- static readonly RULE_functionTable = 115;
506
- static readonly RULE_tableAlias = 116;
507
- static readonly RULE_rowFormat = 117;
508
- static readonly RULE_multipartIdentifierList = 118;
509
- static readonly RULE_multipartIdentifier = 119;
510
- static readonly RULE_multipartIdentifierPropertyList = 120;
511
- static readonly RULE_multipartIdentifierProperty = 121;
512
- static readonly RULE_tableIdentifier = 122;
513
- static readonly RULE_functionIdentifier = 123;
514
- static readonly RULE_namedExpression = 124;
515
- static readonly RULE_namedExpressionSeq = 125;
516
- static readonly RULE_partitionFieldList = 126;
517
- static readonly RULE_partitionField = 127;
518
- static readonly RULE_transform = 128;
519
- static readonly RULE_transformArgument = 129;
520
- static readonly RULE_expression = 130;
521
- static readonly RULE_namedArgumentExpression = 131;
522
- static readonly RULE_functionArgument = 132;
523
- static readonly RULE_expressionSeq = 133;
524
- static readonly RULE_booleanExpression = 134;
525
- static readonly RULE_predicate = 135;
526
- static readonly RULE_valueExpression = 136;
527
- static readonly RULE_datetimeUnit = 137;
528
- static readonly RULE_primaryExpression = 138;
529
- static readonly RULE_literalType = 139;
530
- static readonly RULE_constant = 140;
531
- static readonly RULE_comparisonOperator = 141;
532
- static readonly RULE_arithmeticOperator = 142;
533
- static readonly RULE_predicateOperator = 143;
534
- static readonly RULE_booleanValue = 144;
535
- static readonly RULE_interval = 145;
536
- static readonly RULE_errorCapturingMultiUnitsInterval = 146;
537
- static readonly RULE_multiUnitsInterval = 147;
538
- static readonly RULE_errorCapturingUnitToUnitInterval = 148;
539
- static readonly RULE_unitToUnitInterval = 149;
540
- static readonly RULE_intervalValue = 150;
541
- static readonly RULE_unitInMultiUnits = 151;
542
- static readonly RULE_unitInUnitToUnit = 152;
543
- static readonly RULE_colPosition = 153;
544
- static readonly RULE_type = 154;
545
- static readonly RULE_dataType = 155;
546
- static readonly RULE_qualifiedColTypeWithPositionList = 156;
547
- static readonly RULE_qualifiedColTypeWithPosition = 157;
548
- static readonly RULE_colDefinitionDescriptorWithPosition = 158;
549
- static readonly RULE_defaultExpression = 159;
550
- static readonly RULE_colTypeList = 160;
551
- static readonly RULE_colType = 161;
552
- static readonly RULE_createOrReplaceTableColTypeList = 162;
553
- static readonly RULE_createOrReplaceTableColType = 163;
554
- static readonly RULE_colDefinitionOption = 164;
555
- static readonly RULE_generationExpression = 165;
556
- static readonly RULE_complexColTypeList = 166;
557
- static readonly RULE_complexColType = 167;
558
- static readonly RULE_whenClause = 168;
559
- static readonly RULE_windowClause = 169;
560
- static readonly RULE_namedWindow = 170;
561
- static readonly RULE_windowSpec = 171;
562
- static readonly RULE_windowFrame = 172;
563
- static readonly RULE_frameBound = 173;
564
- static readonly RULE_qualifiedNameList = 174;
565
- static readonly RULE_functionName = 175;
566
- static readonly RULE_qualifiedName = 176;
567
- static readonly RULE_errorCapturingIdentifier = 177;
568
- static readonly RULE_errorCapturingIdentifierExtra = 178;
569
- static readonly RULE_identifier = 179;
570
- static readonly RULE_strictIdentifier = 180;
571
- static readonly RULE_quotedIdentifier = 181;
572
- static readonly RULE_backQuotedIdentifier = 182;
573
- static readonly RULE_number = 183;
574
- static readonly RULE_alterColumnAction = 184;
575
- static readonly RULE_stringLit = 185;
576
- static readonly RULE_comment = 186;
577
- static readonly RULE_version = 187;
578
- static readonly RULE_ansiNonReserved = 188;
579
- static readonly RULE_strictNonReserved = 189;
580
- static readonly RULE_nonReserved = 190;
400
+ static readonly RULE_anyNonStringName = 10;
401
+ static readonly RULE_catalogNameDef = 11;
402
+ static readonly RULE_databaseNameDef = 12;
403
+ static readonly RULE_columnNameDef = 13;
404
+ static readonly RULE_tableNameDef = 14;
405
+ static readonly RULE_viewNameDef = 15;
406
+ static readonly RULE_catalogDef = 16;
407
+ static readonly RULE_databaseDef = 17;
408
+ static readonly RULE_tableDef = 18;
409
+ static readonly RULE_viewDef = 19;
410
+ static readonly RULE_columnDef = 20;
411
+ static readonly RULE_describeDef = 21;
412
+ static readonly RULE_describeCatalog = 22;
413
+ static readonly RULE_describeDatabase = 23;
414
+ static readonly RULE_describeTable = 24;
415
+ static readonly RULE_useDef = 25;
416
+ static readonly RULE_ddlStatementDef = 26;
417
+ static readonly RULE_alterDatabaseDef = 27;
418
+ static readonly RULE_statementForFolding = 28;
419
+ static readonly RULE_statement = 29;
420
+ static readonly RULE_timezone = 30;
421
+ static readonly RULE_configKey = 31;
422
+ static readonly RULE_configValue = 32;
423
+ static readonly RULE_unsupportedHiveNativeCommands = 33;
424
+ static readonly RULE_createTableHeader = 34;
425
+ static readonly RULE_replaceTableHeader = 35;
426
+ static readonly RULE_bucketSpec = 36;
427
+ static readonly RULE_skewSpec = 37;
428
+ static readonly RULE_locationSpec = 38;
429
+ static readonly RULE_commentSpec = 39;
430
+ static readonly RULE_query = 40;
431
+ static readonly RULE_insertInto = 41;
432
+ static readonly RULE_partitionSpecLocation = 42;
433
+ static readonly RULE_partitionSpec = 43;
434
+ static readonly RULE_partitionVal = 44;
435
+ static readonly RULE_namespace = 45;
436
+ static readonly RULE_namespaces = 46;
437
+ static readonly RULE_describeFuncName = 47;
438
+ static readonly RULE_describeColName = 48;
439
+ static readonly RULE_ctes = 49;
440
+ static readonly RULE_namedQuery = 50;
441
+ static readonly RULE_tableProvider = 51;
442
+ static readonly RULE_createTableClauses = 52;
443
+ static readonly RULE_propertyList = 53;
444
+ static readonly RULE_property = 54;
445
+ static readonly RULE_propertyKey = 55;
446
+ static readonly RULE_propertyValue = 56;
447
+ static readonly RULE_expressionPropertyList = 57;
448
+ static readonly RULE_expressionProperty = 58;
449
+ static readonly RULE_constantList = 59;
450
+ static readonly RULE_nestedConstantList = 60;
451
+ static readonly RULE_createFileFormat = 61;
452
+ static readonly RULE_fileFormat = 62;
453
+ static readonly RULE_storageHandler = 63;
454
+ static readonly RULE_resource = 64;
455
+ static readonly RULE_dmlStatementNoWith = 65;
456
+ static readonly RULE_identifierReference = 66;
457
+ static readonly RULE_queryOrganization = 67;
458
+ static readonly RULE_multiInsertQueryBody = 68;
459
+ static readonly RULE_queryTerm = 69;
460
+ static readonly RULE_queryPrimary = 70;
461
+ static readonly RULE_sortItem = 71;
462
+ static readonly RULE_fromStatement = 72;
463
+ static readonly RULE_fromStatementBody = 73;
464
+ static readonly RULE_querySpecification = 74;
465
+ static readonly RULE_transformClause = 75;
466
+ static readonly RULE_selectClause = 76;
467
+ static readonly RULE_setClause = 77;
468
+ static readonly RULE_matchedClause = 78;
469
+ static readonly RULE_notMatchedClause = 79;
470
+ static readonly RULE_notMatchedBySourceClause = 80;
471
+ static readonly RULE_matchedAction = 81;
472
+ static readonly RULE_notMatchedAction = 82;
473
+ static readonly RULE_notMatchedBySourceAction = 83;
474
+ static readonly RULE_assignmentList = 84;
475
+ static readonly RULE_assignment = 85;
476
+ static readonly RULE_whereClause = 86;
477
+ static readonly RULE_havingClause = 87;
478
+ static readonly RULE_hint = 88;
479
+ static readonly RULE_hintStatement = 89;
480
+ static readonly RULE_fromClause = 90;
481
+ static readonly RULE_temporalClause = 91;
482
+ static readonly RULE_aggregationClause = 92;
483
+ static readonly RULE_groupByClause = 93;
484
+ static readonly RULE_groupingAnalytics = 94;
485
+ static readonly RULE_groupingElement = 95;
486
+ static readonly RULE_groupingSet = 96;
487
+ static readonly RULE_pivotClause = 97;
488
+ static readonly RULE_pivotColumn = 98;
489
+ static readonly RULE_pivotValue = 99;
490
+ static readonly RULE_unpivotClause = 100;
491
+ static readonly RULE_unpivotNullClause = 101;
492
+ static readonly RULE_unpivotOperator = 102;
493
+ static readonly RULE_unpivotSingleValueColumnClause = 103;
494
+ static readonly RULE_unpivotMultiValueColumnClause = 104;
495
+ static readonly RULE_unpivotColumnSet = 105;
496
+ static readonly RULE_unpivotValueColumn = 106;
497
+ static readonly RULE_unpivotNameColumn = 107;
498
+ static readonly RULE_unpivotColumnAndAlias = 108;
499
+ static readonly RULE_unpivotColumn = 109;
500
+ static readonly RULE_unpivotAlias = 110;
501
+ static readonly RULE_lateralView = 111;
502
+ static readonly RULE_setQuantifier = 112;
503
+ static readonly RULE_relation = 113;
504
+ static readonly RULE_relationExtension = 114;
505
+ static readonly RULE_joinRelation = 115;
506
+ static readonly RULE_joinType = 116;
507
+ static readonly RULE_joinCriteria = 117;
508
+ static readonly RULE_sample = 118;
509
+ static readonly RULE_sampleMethod = 119;
510
+ static readonly RULE_identifierList = 120;
511
+ static readonly RULE_identifierSeq = 121;
512
+ static readonly RULE_orderedIdentifierList = 122;
513
+ static readonly RULE_orderedIdentifier = 123;
514
+ static readonly RULE_identifierCommentList = 124;
515
+ static readonly RULE_identifierComment = 125;
516
+ static readonly RULE_relationPrimary = 126;
517
+ static readonly RULE_inlineTable = 127;
518
+ static readonly RULE_functionTableSubqueryArgument = 128;
519
+ static readonly RULE_tableArgumentPartitioning = 129;
520
+ static readonly RULE_functionTableNamedArgumentExpression = 130;
521
+ static readonly RULE_functionTableReferenceArgument = 131;
522
+ static readonly RULE_functionTableArgument = 132;
523
+ static readonly RULE_functionTable = 133;
524
+ static readonly RULE_tableAlias = 134;
525
+ static readonly RULE_rowFormat = 135;
526
+ static readonly RULE_multipartIdentifierList = 136;
527
+ static readonly RULE_multipartIdentifier = 137;
528
+ static readonly RULE_multipartIdentifierPropertyList = 138;
529
+ static readonly RULE_multipartIdentifierProperty = 139;
530
+ static readonly RULE_tableIdentifier = 140;
531
+ static readonly RULE_functionIdentifier = 141;
532
+ static readonly RULE_namedExpression = 142;
533
+ static readonly RULE_namedExpressionSeq = 143;
534
+ static readonly RULE_partitionFieldList = 144;
535
+ static readonly RULE_partitionField = 145;
536
+ static readonly RULE_transform = 146;
537
+ static readonly RULE_transformArgument = 147;
538
+ static readonly RULE_expression = 148;
539
+ static readonly RULE_namedArgumentExpression = 149;
540
+ static readonly RULE_functionArgument = 150;
541
+ static readonly RULE_expressionSeq = 151;
542
+ static readonly RULE_booleanExpression = 152;
543
+ static readonly RULE_predicate = 153;
544
+ static readonly RULE_valueExpression = 154;
545
+ static readonly RULE_datetimeUnit = 155;
546
+ static readonly RULE_primaryExpression = 156;
547
+ static readonly RULE_literalType = 157;
548
+ static readonly RULE_constant = 158;
549
+ static readonly RULE_comparisonOperator = 159;
550
+ static readonly RULE_arithmeticOperator = 160;
551
+ static readonly RULE_predicateOperator = 161;
552
+ static readonly RULE_booleanValue = 162;
553
+ static readonly RULE_interval = 163;
554
+ static readonly RULE_errorCapturingMultiUnitsInterval = 164;
555
+ static readonly RULE_multiUnitsInterval = 165;
556
+ static readonly RULE_errorCapturingUnitToUnitInterval = 166;
557
+ static readonly RULE_unitToUnitInterval = 167;
558
+ static readonly RULE_intervalValue = 168;
559
+ static readonly RULE_unitInMultiUnits = 169;
560
+ static readonly RULE_unitInUnitToUnit = 170;
561
+ static readonly RULE_colPosition = 171;
562
+ static readonly RULE_type = 172;
563
+ static readonly RULE_dataType = 173;
564
+ static readonly RULE_qualifiedColTypeWithPositionList = 174;
565
+ static readonly RULE_qualifiedColTypeWithPosition = 175;
566
+ static readonly RULE_colDefinitionDescriptorWithPosition = 176;
567
+ static readonly RULE_defaultExpression = 177;
568
+ static readonly RULE_colTypeList = 178;
569
+ static readonly RULE_colType = 179;
570
+ static readonly RULE_createOrReplaceTableColTypeList = 180;
571
+ static readonly RULE_createOrReplaceTableColType = 181;
572
+ static readonly RULE_colDefinitionOption = 182;
573
+ static readonly RULE_generationExpression = 183;
574
+ static readonly RULE_complexColTypeList = 184;
575
+ static readonly RULE_complexColType = 185;
576
+ static readonly RULE_whenClause = 186;
577
+ static readonly RULE_windowClause = 187;
578
+ static readonly RULE_namedWindow = 188;
579
+ static readonly RULE_windowSpec = 189;
580
+ static readonly RULE_windowFrame = 190;
581
+ static readonly RULE_frameBound = 191;
582
+ static readonly RULE_qualifiedNameList = 192;
583
+ static readonly RULE_functionName = 193;
584
+ static readonly RULE_qualifiedName = 194;
585
+ static readonly RULE_errorCapturingIdentifier = 195;
586
+ static readonly RULE_errorCapturingIdentifierExtra = 196;
587
+ static readonly RULE_identifier = 197;
588
+ static readonly RULE_strictIdentifier = 198;
589
+ static readonly RULE_quotedIdentifier = 199;
590
+ static readonly RULE_backQuotedIdentifier = 200;
591
+ static readonly RULE_number = 201;
592
+ static readonly RULE_alterColumnAction = 202;
593
+ static readonly RULE_stringLit = 203;
594
+ static readonly RULE_comment = 204;
595
+ static readonly RULE_version = 205;
596
+ static readonly RULE_ansiNonReserved = 206;
597
+ static readonly RULE_strictNonReserved = 207;
598
+ static readonly RULE_nonReserved = 208;
581
599
  static readonly ruleNames: string[];
582
600
  private static readonly _LITERAL_NAMES;
583
601
  private static readonly _SYMBOLIC_NAMES;
@@ -602,6 +620,24 @@ export declare class SparkSqlParser extends Parser {
602
620
  singleFunctionIdentifier(): SingleFunctionIdentifierContext;
603
621
  singleDataType(): SingleDataTypeContext;
604
622
  singleTableSchema(): SingleTableSchemaContext;
623
+ anyNonStringName(): AnyNonStringNameContext;
624
+ catalogNameDef(): CatalogNameDefContext;
625
+ databaseNameDef(): DatabaseNameDefContext;
626
+ columnNameDef(): ColumnNameDefContext;
627
+ tableNameDef(): TableNameDefContext;
628
+ viewNameDef(): ViewNameDefContext;
629
+ catalogDef(): CatalogDefContext;
630
+ databaseDef(): DatabaseDefContext;
631
+ tableDef(): TableDefContext;
632
+ viewDef(): ViewDefContext;
633
+ columnDef(): ColumnDefContext;
634
+ describeDef(): DescribeDefContext;
635
+ describeCatalog(): DescribeCatalogContext;
636
+ describeDatabase(): DescribeDatabaseContext;
637
+ describeTable(): DescribeTableContext;
638
+ useDef(): UseDefContext;
639
+ ddlStatementDef(): DdlStatementDefContext;
640
+ alterDatabaseDef(): AlterDatabaseDefContext;
605
641
  statementForFolding(): StatementForFoldingContext;
606
642
  statement(): StatementContext;
607
643
  timezone(): TimezoneContext;
@@ -903,6 +939,201 @@ export declare class SingleTableSchemaContext extends ParserRuleContext {
903
939
  exitRule(listener: SparkSqlParserListener): void;
904
940
  accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result;
905
941
  }
942
+ export declare class AnyNonStringNameContext extends ParserRuleContext {
943
+ identifierReference(): IdentifierReferenceContext;
944
+ constructor(parent: ParserRuleContext | undefined, invokingState: number);
945
+ get ruleIndex(): number;
946
+ enterRule(listener: SparkSqlParserListener): void;
947
+ exitRule(listener: SparkSqlParserListener): void;
948
+ accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result;
949
+ }
950
+ export declare class CatalogNameDefContext extends ParserRuleContext {
951
+ anyNonStringName(): AnyNonStringNameContext;
952
+ constructor(parent: ParserRuleContext | undefined, invokingState: number);
953
+ get ruleIndex(): number;
954
+ enterRule(listener: SparkSqlParserListener): void;
955
+ exitRule(listener: SparkSqlParserListener): void;
956
+ accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result;
957
+ }
958
+ export declare class DatabaseNameDefContext extends ParserRuleContext {
959
+ anyNonStringName(): AnyNonStringNameContext;
960
+ constructor(parent: ParserRuleContext | undefined, invokingState: number);
961
+ get ruleIndex(): number;
962
+ enterRule(listener: SparkSqlParserListener): void;
963
+ exitRule(listener: SparkSqlParserListener): void;
964
+ accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result;
965
+ }
966
+ export declare class ColumnNameDefContext extends ParserRuleContext {
967
+ anyNonStringName(): AnyNonStringNameContext;
968
+ constructor(parent: ParserRuleContext | undefined, invokingState: number);
969
+ get ruleIndex(): number;
970
+ enterRule(listener: SparkSqlParserListener): void;
971
+ exitRule(listener: SparkSqlParserListener): void;
972
+ accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result;
973
+ }
974
+ export declare class TableNameDefContext extends ParserRuleContext {
975
+ anyNonStringName(): AnyNonStringNameContext;
976
+ constructor(parent: ParserRuleContext | undefined, invokingState: number);
977
+ get ruleIndex(): number;
978
+ enterRule(listener: SparkSqlParserListener): void;
979
+ exitRule(listener: SparkSqlParserListener): void;
980
+ accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result;
981
+ }
982
+ export declare class ViewNameDefContext extends ParserRuleContext {
983
+ anyNonStringName(): AnyNonStringNameContext;
984
+ constructor(parent: ParserRuleContext | undefined, invokingState: number);
985
+ get ruleIndex(): number;
986
+ enterRule(listener: SparkSqlParserListener): void;
987
+ exitRule(listener: SparkSqlParserListener): void;
988
+ accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result;
989
+ }
990
+ export declare class CatalogDefContext extends ParserRuleContext {
991
+ catalogNameDef(): CatalogNameDefContext;
992
+ constructor(parent: ParserRuleContext | undefined, invokingState: number);
993
+ get ruleIndex(): number;
994
+ enterRule(listener: SparkSqlParserListener): void;
995
+ exitRule(listener: SparkSqlParserListener): void;
996
+ accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result;
997
+ }
998
+ export declare class DatabaseDefContext extends ParserRuleContext {
999
+ databaseNameDef(): DatabaseNameDefContext;
1000
+ catalogDef(): CatalogDefContext | undefined;
1001
+ DOT(): TerminalNode | undefined;
1002
+ constructor(parent: ParserRuleContext | undefined, invokingState: number);
1003
+ get ruleIndex(): number;
1004
+ enterRule(listener: SparkSqlParserListener): void;
1005
+ exitRule(listener: SparkSqlParserListener): void;
1006
+ accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result;
1007
+ }
1008
+ export declare class TableDefContext extends ParserRuleContext {
1009
+ tableNameDef(): TableNameDefContext;
1010
+ databaseDef(): DatabaseDefContext | undefined;
1011
+ DOT(): TerminalNode | undefined;
1012
+ constructor(parent: ParserRuleContext | undefined, invokingState: number);
1013
+ get ruleIndex(): number;
1014
+ enterRule(listener: SparkSqlParserListener): void;
1015
+ exitRule(listener: SparkSqlParserListener): void;
1016
+ accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result;
1017
+ }
1018
+ export declare class ViewDefContext extends ParserRuleContext {
1019
+ viewNameDef(): ViewNameDefContext;
1020
+ databaseDef(): DatabaseDefContext | undefined;
1021
+ DOT(): TerminalNode | undefined;
1022
+ constructor(parent: ParserRuleContext | undefined, invokingState: number);
1023
+ get ruleIndex(): number;
1024
+ enterRule(listener: SparkSqlParserListener): void;
1025
+ exitRule(listener: SparkSqlParserListener): void;
1026
+ accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result;
1027
+ }
1028
+ export declare class ColumnDefContext extends ParserRuleContext {
1029
+ constructor(parent: ParserRuleContext | undefined, invokingState: number);
1030
+ get ruleIndex(): number;
1031
+ copyFrom(ctx: ColumnDefContext): void;
1032
+ }
1033
+ export declare class ColumnReferenceDefContext extends ColumnDefContext {
1034
+ columnNameDef(): ColumnNameDefContext;
1035
+ constructor(ctx: ColumnDefContext);
1036
+ enterRule(listener: SparkSqlParserListener): void;
1037
+ exitRule(listener: SparkSqlParserListener): void;
1038
+ accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result;
1039
+ }
1040
+ export declare class StarDefContext extends ColumnDefContext {
1041
+ ASTERISK(): TerminalNode;
1042
+ tableDef(): TableDefContext | undefined;
1043
+ DOT(): TerminalNode | undefined;
1044
+ constructor(ctx: ColumnDefContext);
1045
+ enterRule(listener: SparkSqlParserListener): void;
1046
+ exitRule(listener: SparkSqlParserListener): void;
1047
+ accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result;
1048
+ }
1049
+ export declare class DereferenceDefContext extends ColumnDefContext {
1050
+ tableDef(): TableDefContext;
1051
+ DOT(): TerminalNode;
1052
+ columnNameDef(): ColumnNameDefContext;
1053
+ constructor(ctx: ColumnDefContext);
1054
+ enterRule(listener: SparkSqlParserListener): void;
1055
+ exitRule(listener: SparkSqlParserListener): void;
1056
+ accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result;
1057
+ }
1058
+ export declare class DescribeDefContext extends ParserRuleContext {
1059
+ describeCatalog(): DescribeCatalogContext | undefined;
1060
+ describeDatabase(): DescribeDatabaseContext | undefined;
1061
+ describeTable(): DescribeTableContext | undefined;
1062
+ constructor(parent: ParserRuleContext | undefined, invokingState: number);
1063
+ get ruleIndex(): number;
1064
+ enterRule(listener: SparkSqlParserListener): void;
1065
+ exitRule(listener: SparkSqlParserListener): void;
1066
+ accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result;
1067
+ }
1068
+ export declare class DescribeCatalogContext extends ParserRuleContext {
1069
+ CATALOG(): TerminalNode;
1070
+ catalogDef(): CatalogDefContext;
1071
+ DESCRIBE(): TerminalNode | undefined;
1072
+ DESC(): TerminalNode | undefined;
1073
+ constructor(parent: ParserRuleContext | undefined, invokingState: number);
1074
+ get ruleIndex(): number;
1075
+ enterRule(listener: SparkSqlParserListener): void;
1076
+ exitRule(listener: SparkSqlParserListener): void;
1077
+ accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result;
1078
+ }
1079
+ export declare class DescribeDatabaseContext extends ParserRuleContext {
1080
+ databaseDef(): DatabaseDefContext;
1081
+ DESCRIBE(): TerminalNode | undefined;
1082
+ DESC(): TerminalNode | undefined;
1083
+ DATABASE(): TerminalNode | undefined;
1084
+ SCHEMA(): TerminalNode | undefined;
1085
+ constructor(parent: ParserRuleContext | undefined, invokingState: number);
1086
+ get ruleIndex(): number;
1087
+ enterRule(listener: SparkSqlParserListener): void;
1088
+ exitRule(listener: SparkSqlParserListener): void;
1089
+ accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result;
1090
+ }
1091
+ export declare class DescribeTableContext extends ParserRuleContext {
1092
+ tableDef(): TableDefContext;
1093
+ DESCRIBE(): TerminalNode | undefined;
1094
+ DESC(): TerminalNode | undefined;
1095
+ TABLE(): TerminalNode | undefined;
1096
+ constructor(parent: ParserRuleContext | undefined, invokingState: number);
1097
+ get ruleIndex(): number;
1098
+ enterRule(listener: SparkSqlParserListener): void;
1099
+ exitRule(listener: SparkSqlParserListener): void;
1100
+ accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result;
1101
+ }
1102
+ export declare class UseDefContext extends ParserRuleContext {
1103
+ USE(): TerminalNode;
1104
+ CATALOG(): TerminalNode | undefined;
1105
+ catalogDef(): CatalogDefContext | undefined;
1106
+ databaseDef(): DatabaseDefContext | undefined;
1107
+ constructor(parent: ParserRuleContext | undefined, invokingState: number);
1108
+ get ruleIndex(): number;
1109
+ enterRule(listener: SparkSqlParserListener): void;
1110
+ exitRule(listener: SparkSqlParserListener): void;
1111
+ accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result;
1112
+ }
1113
+ export declare class DdlStatementDefContext extends ParserRuleContext {
1114
+ alterDatabaseDef(): AlterDatabaseDefContext;
1115
+ constructor(parent: ParserRuleContext | undefined, invokingState: number);
1116
+ get ruleIndex(): number;
1117
+ enterRule(listener: SparkSqlParserListener): void;
1118
+ exitRule(listener: SparkSqlParserListener): void;
1119
+ accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result;
1120
+ }
1121
+ export declare class AlterDatabaseDefContext extends ParserRuleContext {
1122
+ ALTER(): TerminalNode;
1123
+ databaseDef(): DatabaseDefContext;
1124
+ SET(): TerminalNode;
1125
+ propertyList(): PropertyListContext | undefined;
1126
+ DATABASE(): TerminalNode | undefined;
1127
+ SCHEMA(): TerminalNode | undefined;
1128
+ DBPROPERTIES(): TerminalNode | undefined;
1129
+ PROPERTIES(): TerminalNode | undefined;
1130
+ locationSpec(): LocationSpecContext | undefined;
1131
+ constructor(parent: ParserRuleContext | undefined, invokingState: number);
1132
+ get ruleIndex(): number;
1133
+ enterRule(listener: SparkSqlParserListener): void;
1134
+ exitRule(listener: SparkSqlParserListener): void;
1135
+ accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result;
1136
+ }
906
1137
  export declare class StatementForFoldingContext extends ParserRuleContext {
907
1138
  statement(): StatementContext;
908
1139
  constructor(parent: ParserRuleContext | undefined, invokingState: number);
@@ -923,6 +1154,27 @@ export declare class StatementDefaultContext extends StatementContext {
923
1154
  exitRule(listener: SparkSqlParserListener): void;
924
1155
  accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result;
925
1156
  }
1157
+ export declare class DescribeStatementContext extends StatementContext {
1158
+ describeDef(): DescribeDefContext;
1159
+ constructor(ctx: StatementContext);
1160
+ enterRule(listener: SparkSqlParserListener): void;
1161
+ exitRule(listener: SparkSqlParserListener): void;
1162
+ accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result;
1163
+ }
1164
+ export declare class UseStatementContext extends StatementContext {
1165
+ useDef(): UseDefContext;
1166
+ constructor(ctx: StatementContext);
1167
+ enterRule(listener: SparkSqlParserListener): void;
1168
+ exitRule(listener: SparkSqlParserListener): void;
1169
+ accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result;
1170
+ }
1171
+ export declare class DdlStatementContext extends StatementContext {
1172
+ ddlStatementDef(): DdlStatementDefContext;
1173
+ constructor(ctx: StatementContext);
1174
+ enterRule(listener: SparkSqlParserListener): void;
1175
+ exitRule(listener: SparkSqlParserListener): void;
1176
+ accept<Result>(visitor: SparkSqlParserVisitor<Result>): Result;
1177
+ }
926
1178
  export declare class DmlStatementContext extends StatementContext {
927
1179
  dmlStatementNoWith(): DmlStatementNoWithContext;
928
1180
  ctes(): CtesContext | undefined;
@@ -961,7 +1213,8 @@ export declare class SetCatalogContext extends StatementContext {
961
1213
  export declare class CreateNamespaceContext extends StatementContext {
962
1214
  CREATE(): TerminalNode;
963
1215
  namespace(): NamespaceContext;
964
- identifierReference(): IdentifierReferenceContext;
1216
+ databaseDef(): DatabaseDefContext | undefined;
1217
+ identifierReference(): IdentifierReferenceContext | undefined;
965
1218
  IF(): TerminalNode | undefined;
966
1219
  NOT(): TerminalNode | undefined;
967
1220
  EXISTS(): TerminalNode | undefined;
@@ -1987,7 +2240,8 @@ export declare class UnsupportedHiveNativeCommandsContext extends ParserRuleCont
1987
2240
  export declare class CreateTableHeaderContext extends ParserRuleContext {
1988
2241
  CREATE(): TerminalNode;
1989
2242
  TABLE(): TerminalNode;
1990
- identifierReference(): IdentifierReferenceContext;
2243
+ tableDef(): TableDefContext | undefined;
2244
+ identifierReference(): IdentifierReferenceContext | undefined;
1991
2245
  TEMPORARY(): TerminalNode | undefined;
1992
2246
  EXTERNAL(): TerminalNode | undefined;
1993
2247
  IF(): TerminalNode | undefined;
@@ -2002,7 +2256,8 @@ export declare class CreateTableHeaderContext extends ParserRuleContext {
2002
2256
  export declare class ReplaceTableHeaderContext extends ParserRuleContext {
2003
2257
  REPLACE(): TerminalNode;
2004
2258
  TABLE(): TerminalNode;
2005
- identifierReference(): IdentifierReferenceContext;
2259
+ tableDef(): TableDefContext | undefined;
2260
+ identifierReference(): IdentifierReferenceContext | undefined;
2006
2261
  CREATE(): TerminalNode | undefined;
2007
2262
  OR(): TerminalNode | undefined;
2008
2263
  constructor(parent: ParserRuleContext | undefined, invokingState: number);