Skip to content

Commit

Permalink
Query Manager (opensearch-project#915)
Browse files Browse the repository at this point in the history
* Bump prismjs from 1.25.0 to 1.27.0 in /dashboards-observability (opensearch-project#508) (opensearch-project#574)

Bumps [prismjs](https://github.com/PrismJS/prism) from 1.25.0 to 1.27.0.
- [Release notes](https://github.com/PrismJS/prism/releases)
- [Changelog](https://github.com/PrismJS/prism/blob/master/CHANGELOG.md)
- [Commits](PrismJS/prism@v1.25.0...v1.27.0)

---
updated-dependencies:
- dependency-name: prismjs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
(cherry picked from commit b4f491a)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* change to support java 8 in compile and runtime (opensearch-project#575) (opensearch-project#576)

Signed-off-by: Zhongnan Su <szhongna@amazon.com>
(cherry picked from commit 5c43e9d)

Co-authored-by: Zhongnan Su <szhongna@amazon.com>

* Add 1.3.0 release notes (opensearch-project#580) (opensearch-project#582)

Signed-off-by: Eugene Lee <eugenesk@amazon.com>

* query manager

Signed-off-by: Eric Wei <menwe@amazon.com>

* removed aggregations from dimensions

Signed-off-by: Eric Wei <menwe@amazon.com>

* qm improvements

Signed-off-by: Eric Wei <menwe@amazon.com>

* types/code cleanups/error corrections

Signed-off-by: Eric Wei <menwe@amazon.com>

* fixed a undefined issue

Signed-off-by: Eric Wei <menwe@amazon.com>

* qm fixes for query builder

Signed-off-by: Eric Wei <menwe@amazon.com>

* viz timestamp selector

Signed-off-by: Eric Wei <menwe@amazon.com>

* use postinstall for antlr output files

Signed-off-by: Eric Wei <menwe@amazon.com>

* query building fixes

Signed-off-by: Eric Wei <menwe@amazon.com>

* updated snapshots

Signed-off-by: Eric Wei <menwe@amazon.com>

* remove output files

Signed-off-by: Eric Wei <menwe@amazon.com>

* cherry-pick from integration branch

Signed-off-by: Eric Wei <menwe@amazon.com>

* explicitly remove generated files

Signed-off-by: Eric Wei <menwe@amazon.com>

Signed-off-by: Eugene Lee <eugenesk@amazon.com>
Signed-off-by: Eric Wei <menwe@amazon.com>
Co-authored-by: opensearch-trigger-bot[bot] <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Zhongnan Su <szhongna@amazon.com>
  • Loading branch information
4 people committed Sep 7, 2022
1 parent e8edc0c commit 2fae9b0
Show file tree
Hide file tree
Showing 36 changed files with 4,621 additions and 32 deletions.
1 change: 1 addition & 0 deletions dashboards-observability/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ build/
coverage/
.cypress/screenshots
.cypress/videos
common/query_manager/antlr/output
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/

import { CharStream } from 'antlr4ts';

export class CaseInsensitiveCharStream {
private stream: CharStream;

get index(): number {
return this.stream.index;
}

get size(): number {
return this.stream.size;
}

get sourceName(): string {
return 'pplquery';
}

constructor(stream: CharStream) {
this.stream = stream;
}

LA(offset: number): number {
const c: number = this.stream.LA(offset);
if (c <= 0) {
return c;
}

// case insensitivity support for PPL
return String.fromCodePoint(c).toUpperCase().codePointAt(0)!;
}

consume(): void {
this.stream.consume();
}

mark(): number {
return this.stream.mark();
}

release(marker: number): void {
this.stream.release(marker);
}

seek(index: number): void {
this.stream.seek(index);
}

getText(interval: any): string {
return this.stream.getText(interval);
}

toString(): string {
return this.stream.toString();
}
}
Loading

0 comments on commit 2fae9b0

Please sign in to comment.