mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[ES|QL] Set drop null columns param correctly for partial results (#192666)
## Summary Closes https://github.com/elastic/kibana/issues/192595 We were not setting the `drop_null_columns ` queryString for partial results and as a result it was returning the empty columns only for the initial request, resulting in the weirdness that is being described in the issue.
This commit is contained in:
parent
bce4a17f08
commit
708a96cca8
2 changed files with 14 additions and 5 deletions
|
@ -79,7 +79,7 @@ export const esqlAsyncSearchStrategyProvider = (
|
|||
{
|
||||
method: 'GET',
|
||||
path: `/_query/async/${id}`,
|
||||
querystring: { ...params },
|
||||
querystring: { ...params, drop_null_columns: dropNullColumns },
|
||||
},
|
||||
{ ...options.transport, signal: options.abortSignal, meta: true }
|
||||
)
|
||||
|
|
|
@ -114,12 +114,17 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
options = await find.allByCssSelector('[data-test-subj*="typeFilter"]');
|
||||
expect(options).to.have.length(6);
|
||||
|
||||
expect(await unifiedFieldList.getSidebarAriaDescription()).to.be('82 available fields.');
|
||||
expect(await unifiedFieldList.getSidebarAriaDescription()).to.be(
|
||||
'76 available fields. 6 empty fields.'
|
||||
);
|
||||
|
||||
await testSubjects.click('typeFilter-number');
|
||||
|
||||
await retry.waitFor('updates', async () => {
|
||||
return (await unifiedFieldList.getSidebarAriaDescription()) === '6 available fields.';
|
||||
return (
|
||||
(await unifiedFieldList.getSidebarAriaDescription()) ===
|
||||
'4 available fields. 2 empty fields.'
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -446,12 +451,16 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
await header.waitUntilLoadingHasFinished();
|
||||
await unifiedFieldList.waitUntilSidebarHasLoaded();
|
||||
|
||||
expect(await unifiedFieldList.getSidebarAriaDescription()).to.be('82 available fields.');
|
||||
expect(await unifiedFieldList.getSidebarAriaDescription()).to.be(
|
||||
'76 available fields. 6 empty fields.'
|
||||
);
|
||||
|
||||
await unifiedFieldList.clickFieldListItemRemove('extension');
|
||||
await unifiedFieldList.waitUntilSidebarHasLoaded();
|
||||
|
||||
expect(await unifiedFieldList.getSidebarAriaDescription()).to.be('82 available fields.');
|
||||
expect(await unifiedFieldList.getSidebarAriaDescription()).to.be(
|
||||
'76 available fields. 6 empty fields.'
|
||||
);
|
||||
|
||||
const testQuery = `from logstash-* | limit 10 | stats countB = count(bytes) by geo.dest | sort countB`;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue