Skip to content

Commit

Permalink
Merge pull request #64 from paulstn/discover-sql-changes
Browse files Browse the repository at this point in the history
add error data frame
  • Loading branch information
kavilla authored Apr 29, 2024
2 parents 6742fea + 2e37b2d commit 5b846ef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/plugins/data/common/data_frames/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,7 @@ export interface PartialDataFrame extends Omit<IDataFrame, 'fields' | 'size'> {
export interface IDataFrameWithAggs extends IDataFrame {
aggs: DataFrameAgg[] | null;
}

export interface IDataFrameError {
error: Error;
}
3 changes: 2 additions & 1 deletion src/plugins/data/common/data_frames/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ import {
IDataFrame,
IDataFrameWithAggs,
PartialDataFrame,
IDataFrameError,
} from './types';
import { IFieldType } from './fields';
import { IndexPatternFieldMap, IndexPatternSpec } from '../index_patterns';
import { IOpenSearchDashboardsSearchRequest } from '../search';

export interface IDataFrameResponse extends SearchResponse<any> {
type: DATA_FRAME_TYPES;
body: IDataFrame | IDataFrameWithAggs;
body: IDataFrame | IDataFrameWithAggs | IDataFrameError;
took: number;
}

Expand Down

0 comments on commit 5b846ef

Please sign in to comment.