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 @@ -12,7 +12,7 @@
const aliases: Record<string, string[]> = {
STATS: ['STATS_BY', 'BY', 'STATS...BY', 'STATS ... BY'],
OPERATORS: ['LIKE', 'RLIKE', 'IN'],
JOIN: ['LOOKUP JOIN'],
LOOKUP_JOIN: ['LOOKUPJOIN'],
};

const getAliasMap = () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ export class EsqlDocumentBase {
}: GetDocsOptions = {}
) {
const keywords = rawKeywords.map((raw) => {
// LOOKUP JOIN has space so we want to retain as is
let keyword = raw.toLowerCase().includes('join') ? raw : format(raw);
let keyword = format(raw);
if (resolveAliases) {
keyword = tryResolveAlias(keyword);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async function evaluateEsqlQuery({
const evaluation = await chatClient.evaluate(conversation, [
...(expected
? [
`Returns a ES|QL query that is functionally equivalent to:
`Returns a ES|QL query that is functionally equivalent to:
${expected}. It's OK if column names are slightly different, as long as the expected end result is the same.`,
]
: []),
Expand Down