Skip to content

[ES|QL ] Common Lookup Join Fields Are Not Listed First#246582

Merged
stratoula merged 3 commits intoelastic:mainfrom
bartoval:lookup_columns_wrong_order
Dec 17, 2025
Merged

[ES|QL ] Common Lookup Join Fields Are Not Listed First#246582
stratoula merged 3 commits intoelastic:mainfrom
bartoval:lookup_columns_wrong_order

Conversation

@bartoval
Copy link
Contributor

Summary

Added two new sorting categories for common and unique lookup fields.

Common has higher priority than fields and unique lookup fields (same priority).

@bartoval bartoval self-assigned this Dec 16, 2025
@bartoval bartoval requested a review from a team as a code owner December 16, 2025 15:40
@bartoval bartoval added bug Fixes for quality problems that affect the customer experience release_note:skip Skip the PR/issue when compiling release notes Feature:ES|QL ES|QL related features in Kibana Team:ESQL ES|QL related features in Kibana t// v9.3.0 labels Dec 16, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-esql (Team:ESQL)

@bartoval bartoval changed the title [ES|QL ] Lookup Join Fields Are Not Listed First [ES|QL ] Common Lookup Join Fields Are Not Listed First Dec 16, 2025
@bartoval bartoval added the backport:skip This PR does not require backporting label Dec 16, 2025
@bartoval
Copy link
Contributor Author

⏳ Build in-progress, with failures

Failed CI Steps

History

cc @bartoval

calm down

@bartoval bartoval force-pushed the lookup_columns_wrong_order branch from 628c84e to 45c58a0 Compare December 16, 2025 16:49
Copy link
Contributor

@stratoula stratoula left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, just one question for the extra category, do we really need this?

return [...markedSourceSuggestions, ...uniqueLookupSuggestions];
const categorizedLookupSuggestions = uniqueLookupSuggestions.map((suggestion) => ({
...suggestion,
category: SuggestionCategory.LOOKUP_INDEX_FIELD,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bartoval remind me why we have to give a different category for this? Why is not falling on the typical field category? I would expect to only have a new category for the common ones and the rest to be SuggestionCategory.FIELD

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added it only for clarity and to distinguish it, in case we want to change the rules in the future. The priority is the same as the FIELDs. I can remove it anyway.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah let's remove it for now and if there is a need let's add it then!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bartoval bartoval force-pushed the lookup_columns_wrong_order branch from 63e51ce to bc3d86e Compare December 17, 2025 06:44
@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #85 / alerting api integration security and spaces enabled - Group 2 Connectors webhook action OAuth2 client credentials should refresh the token once the previous one has expired

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
unifiedSearch 394.3KB 394.3KB +44.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
kbnUiSharedDeps-srcJs 4.3MB 4.3MB +108.0B

History

cc @bartoval

@stratoula stratoula merged commit c7e98b6 into elastic:main Dec 17, 2025
13 checks passed
mbondyra added a commit to mbondyra/kibana that referenced this pull request Dec 17, 2025
…donly

* commit 'bb1f55fa520b30ceb923af069ef403b24dcb1606': (52 commits)
  [CPS][Maps] Support CPS Picker in Maps  (elastic#246382)
  [APM] Migrate the Transaction Overview tests to Scout/Playwright/Component/API tests (elastic#245972)
  [Cases] Change nested field search to be case insensitive (elastic#246643)
  [ES|QL] PromQL parser initial implementation (elastic#246552)
  [Agent Builder] Adds keyboard shortcut and toggle behavior to AI Agent button (elastic#246659)
  Retry on "all shards failed" from ES (elastic#246533)
  [Streams] Test enable wired streams flow (elastic#246113)
  [Agent Builder] Fast-follow bugfixes for MCP Tool type  (elastic#246665)
  [Entity Store][API] Fix snake case on CRUD API List response (elastic#246003)
  [ResponseOps][Slack] Simplify channel configuration  (elastic#245423)
  Add Canonical Name Badge to Documentation (elastic#246647)
  [Streams] Add simulation filtering by conditions (elastic#245400)
  [o11y AI] Add `get_hosts` tool (elastic#246541)
  [agent builder] create_visualization: support heatmap and regionmap (elastic#246671)
  [AI Infra] Chat experience: Selection modal title change (elastic#246683)
  [Background search] Change polling behavior (elastic#244760)
  [ES|QL  ]  Common Lookup Join Fields Are Not Listed First (elastic#246582)
  Add missing `dynamic: false` (elastic#246685)
  [Metrics in Discover] Unskip metrics api test (elastic#246593)
  [ES|QL] Show next actions after simple field assignment in RERANK ON Clause (elastic#246676)
  ...
KodeRad pushed a commit to KodeRad/kibana that referenced this pull request Dec 17, 2025
## Summary

Added two new sorting categories for common and unique lookup fields. 

Common has higher priority than fields and unique lookup fields (same
priority).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting bug Fixes for quality problems that affect the customer experience Feature:ES|QL ES|QL related features in Kibana release_note:skip Skip the PR/issue when compiling release notes Team:ESQL ES|QL related features in Kibana t// v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants