Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
lunaticusgreen committed Oct 19, 2024
1 parent 158fc53 commit f40855a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/datasource/datasource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import SqlQueryMacros from './sql-query/sql-query-macros';
import { QueryEditor } from "../views/QueryEditor/QueryEditor";

const adhocFilterVariable = 'adhoc_query_filter';
let recentRequest;
export
class CHDataSource
extends DataSourceApi<CHQuery, CHDataSourceOptions>
Expand Down Expand Up @@ -149,17 +148,15 @@ export
return dataRequest
}

async getLogRowContext(row: LogRowModel, options?: LogRowContextOptions | undefined, query?: CHQuery | undefined): Promise<{data: Array<any>}> {
async getLogRowContext(row: LogRowModel, options?: LogRowContextOptions | undefined, query?: CHQuery | undefined): Promise<{data: any[]}> {

let traceId;
const requestOptions = {...options, range: this.options.range}

const originalQuery = this.createQuery(requestOptions, query)

let scanner = new Scanner(originalQuery.stmt.replace(/\r\n|\r|\n/g, ' '));
let {
select
} = scanner.toAST();
let { select } = scanner.toAST();


const generateQueryForTraceID = (traceId, select) => {
Expand Down

0 comments on commit f40855a

Please sign in to comment.