Skip to content

Commit

Permalink
Query Manager (#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 (#508) (#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] <[email protected]>

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 (#575) (#576)

Signed-off-by: Zhongnan Su <[email protected]>
(cherry picked from commit 5c43e9d)

Co-authored-by: Zhongnan Su <[email protected]>

* Add 1.3.0 release notes (#580) (#582)

Signed-off-by: Eugene Lee <[email protected]>

* query manager

Signed-off-by: Eric Wei <[email protected]>

* removed aggregations from dimensions

Signed-off-by: Eric Wei <[email protected]>

* qm improvements

Signed-off-by: Eric Wei <[email protected]>

* types/code cleanups/error corrections

Signed-off-by: Eric Wei <[email protected]>

* fixed a undefined issue

Signed-off-by: Eric Wei <[email protected]>

* qm fixes for query builder

Signed-off-by: Eric Wei <[email protected]>

* viz timestamp selector

Signed-off-by: Eric Wei <[email protected]>

* use postinstall for antlr output files

Signed-off-by: Eric Wei <[email protected]>

* query building fixes

Signed-off-by: Eric Wei <[email protected]>

* updated snapshots

Signed-off-by: Eric Wei <[email protected]>

* remove output files

Signed-off-by: Eric Wei <[email protected]>

* cherry-pick from integration branch

Signed-off-by: Eric Wei <[email protected]>

* explicitly remove generated files

Signed-off-by: Eric Wei <[email protected]>

Signed-off-by: Eugene Lee <[email protected]>
Signed-off-by: Eric Wei <[email protected]>
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 <[email protected]>
  • Loading branch information
4 people authored 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.