Skip to content

Commit adfa652

Browse files
committed
Fix TranslateSqlResponse - elasticsearch-java#167
1 parent 8338d2c commit adfa652

File tree

3 files changed

+57
-28
lines changed

3 files changed

+57
-28
lines changed

output/schema/schema.json

+42-20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

+6-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/sql/translate/TranslateSqlResponse.ts

+9-4
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,17 @@ import { SourceConfig } from '@global/search/_types/SourceFilter'
2222
import { Dictionary } from '@spec_utils/Dictionary'
2323
import { Field, Fields } from '@_types/common'
2424
import { long } from '@_types/Numeric'
25+
import { FieldAndFormat, QueryContainer } from '@_types/query_dsl/abstractions'
26+
import { AggregationContainer } from '@_types/aggregations/AggregationContainer'
2527

2628
export class Response {
29+
// This is a subset of SearchRequest's body (same data structure in the ES code)
2730
body: {
28-
size: long
29-
_source: SourceConfig
30-
fields: Array<Dictionary<Field, string>>
31-
sort: Sort
31+
aggregations?: Dictionary<string, AggregationContainer>
32+
size?: long
33+
_source?: SourceConfig
34+
fields?: Array<FieldAndFormat>
35+
query?: QueryContainer
36+
sort?: Sort
3237
}
3338
}

0 commit comments

Comments
 (0)