Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,18 @@ describe('RERANK Autocomplete', () => {

await expectRerankSuggestions(query, NEXT_ACTIONS_EXPRESSIONS);
});

test('suggests next actions after simple field assignment', async () => {
const query =
buildRerankQuery({
query: '"search query"',
onClause: 'col0 = keywordField',
}) + ' ';

await expectRerankSuggestions(query, {
contains: NEXT_ACTIONS,
});
});
});

describe('Terminal operators', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,9 @@ async function handleOnExpression({
},
});

const { expressionType, isComplete, insideFunction } = computed;
const { isComplete, insideFunction } = computed;

if (expressionRoot && expressionType === 'boolean' && isComplete && !insideFunction) {
if (expressionRoot && isComplete && !insideFunction) {
suggestions.push(...buildNextActions());
}

Expand Down