Skip to content

ES|QL: Enable CCS tests for FORK#139302

Merged
ioanatia merged 4 commits intoelastic:mainfrom
ioanatia:fork_ccs
Dec 11, 2025
Merged

ES|QL: Enable CCS tests for FORK#139302
ioanatia merged 4 commits intoelastic:mainfrom
ioanatia:fork_ccs

Conversation

@ioanatia
Copy link
Contributor

given the fix in #138332 - we should be able to re-enable the test for CCS again for FORK.
since the fix from #138332 is only available in snapshot, these CCS tests using FORK are also only enabled when using snapshot builds.

@ioanatia ioanatia added >test Issues or PRs that are addressing/adding tests Team:Search - Relevance The Search organization Search Relevance team :Search Relevance/ES|QL Search functionality in ES|QL v9.3.0 labels Dec 10, 2025
required_capability: subquery_in_from_command

FROM employees, (FROM sample_data
FROM employees, (FROM sample_data metadata _index
Copy link
Contributor Author

Choose a reason for hiding this comment

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

https://github.com/elastic/elasticsearch/pull/137776/files#diff-ce2360e7ca89b74f2454822d45cbadf8d4218f97777df7d160a0863053a041fc for all subqueries tests we removed the fork_v9 capability and we pushed the metadata _index in the subqueries.

this means this test was not enabled for CCS, and once we enabled the FORK tests, this test was failing because the _index metadata column contained values that had the remote index tag:


Actual: |  
-- | --
_index:keyword           \| emp_no:integer \| languages:integer \| cnt:long \| ts:datetime |  
remote_cluster:employees \| 10091          \| 3                 \| null     \| null |  
remote_cluster:employees \| 10092          \| 1                 \| null     \| null |  
remote_cluster:employees \| 10093          \| 3                 \| null     \| null |  
null                     \| null           \| null              \| 2        \| 2023-10-23T12:00:00.000Z |  
null                     \| null           \| null              \| 5        \| 2023-10-23T13:00:00.000Z |  
  |  
Expected: |  
_index:keyword \| emp_no:integer \| languages:integer \| cnt:long \| ts:datetime |  
employees      \| 10091          \| 3                 \| null     \| null |  
employees      \| 10092          \| 1                 \| null     \| null |  
employees      \| 10093          \| 3                 \| null     \| null |  
null           \| null           \| null              \| 2        \| 2023-10-23T12:00:00.000Z |  
null           \| null           \| null              \| 5        \| 2023-10-23T13:00:00.000Z


I think that during #137776 we just missed this test, so these changes here should be safe to make.

@ioanatia ioanatia marked this pull request as ready for review December 11, 2025 11:33
@elasticsearchmachine elasticsearchmachine added Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch and removed Team:Search - Relevance The Search organization Search Relevance team labels Dec 11, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search-relevance (Team:Search Relevance)

@ioanatia ioanatia merged commit c5746b3 into elastic:main Dec 11, 2025
35 checks passed
@ioanatia ioanatia deleted the fork_ccs branch December 11, 2025 12:33
szybia added a commit to szybia/elasticsearch that referenced this pull request Dec 11, 2025
* upstream/main: (79 commits)
  Mute org.elasticsearch.test.rest.yaml.CcsCommonYamlTestSuiteIT test {p0=search/140_pre_filter_search_shards/prefilter on non-indexed date fields} elastic#139381
  Adjust error bounds for bfloat16 value checks (elastic#139371)
  Unmute some vector CSS tests (elastic#139370)
  Do not allow `project_routing` as a query param (elastic#139206)
  Unmute HalfFloat...Tests#testSynthesizeArrayRandom (elastic#139341)
  Remove leniency in LinkedProjectConfig builder methods (elastic#139012)
  EQL: fix project_routing (elastic#139366)
  Add patch version for 9.2 index version constant (elastic#139362)
  Mute org.elasticsearch.test.rest.yaml.RcsCcsCommonYamlTestSuiteIT test {p0=search.vectors/200_dense_vector_docvalue_fields/dense_vector docvalues with bfloat16} elastic#139368
  ES|QL: Enable CCS tests for FORK (elastic#139302)
  Restructuring the semantic_text field type page  (elastic#138571)
  AggregateMetricDouble fields should not build BKD indexes (elastic#138724)
  Feature/count by trunc with filter (elastic#138765)
  ESQL: Convert TS 500 error to 400 (elastic#139360)
  [CI] Rerun failing tests for periodic build pipelines (elastic#139200)
  revert muting saml test (elastic#139327)
  Add TDigest histogram as metric (elastic#139247)
  Links solved bugs to class cast exception changelog and unmutes errors (elastic#139340)
  Ensure integer sorts are rewritten to long sorts for BWC indexes (elastic#139293)
  Integrate stored fields format bloom filter with synthetic _id (elastic#138515)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Search Relevance/ES|QL Search functionality in ES|QL Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch >test Issues or PRs that are addressing/adding tests v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants