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
12 changes: 0 additions & 12 deletions muted-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -435,18 +435,6 @@ tests:
- class: org.elasticsearch.xpack.esql.analysis.VerifierTests
method: testMMRLimitedInput
issue: https://github.com/elastic/elasticsearch/issues/144077
- class: org.elasticsearch.xpack.esql.expression.function.vector.MagnitudeSerializationTests
method: testEqualsAndHashcode
issue: https://github.com/elastic/elasticsearch/issues/144078
- class: org.elasticsearch.xpack.esql.expression.function.vector.MagnitudeSerializationTests
method: testSerialization
issue: https://github.com/elastic/elasticsearch/issues/144079
- class: org.elasticsearch.xpack.esql.expression.function.vector.MagnitudeSerializationTests
method: testConcurrentSerialization
issue: https://github.com/elastic/elasticsearch/issues/144080
- class: org.elasticsearch.xpack.esql.expression.function.vector.MagnitudeSerializationTests
method: testConcurrentEquals
issue: https://github.com/elastic/elasticsearch/issues/144081

# Examples:
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,19 @@

package org.elasticsearch.xpack.esql.expression.function.vector;

import org.elasticsearch.xpack.esql.action.EsqlCapabilities;
import org.elasticsearch.xpack.esql.core.expression.Expression;
import org.elasticsearch.xpack.esql.core.tree.Source;
import org.elasticsearch.xpack.esql.expression.AbstractUnaryScalarSerializationTests;
import org.junit.Before;

public class MagnitudeSerializationTests extends AbstractUnaryScalarSerializationTests<Magnitude> {

@Before
public void checkCapability() {
assumeTrue("v_magnitude available in snapshot", EsqlCapabilities.Cap.MAGNITUDE_SCALAR_VECTOR_FUNCTION.isEnabled());
}

@Override
protected Magnitude create(Source source, Expression child) {
return new Magnitude(source, child);
Expand Down
Loading