diff --git a/core/trino-main/src/test/java/io/trino/sql/planner/assertions/TableFunctionMatcher.java b/core/trino-main/src/test/java/io/trino/sql/planner/assertions/TableFunctionMatcher.java index 2544c67f80260..c3d8b407eac03 100644 --- a/core/trino-main/src/test/java/io/trino/sql/planner/assertions/TableFunctionMatcher.java +++ b/core/trino-main/src/test/java/io/trino/sql/planner/assertions/TableFunctionMatcher.java @@ -235,9 +235,9 @@ public sealed interface ArgumentValue public record DescriptorArgumentValue(Optional descriptor) implements ArgumentValue { - public DescriptorArgumentValue(Optional descriptor) + public DescriptorArgumentValue { - this.descriptor = requireNonNull(descriptor, "descriptor is null"); + requireNonNull(descriptor, "descriptor is null"); } public static DescriptorArgumentValue descriptorArgument(Descriptor descriptor) @@ -264,20 +264,10 @@ public record TableArgumentValue( Set passThroughSymbols) implements ArgumentValue { - public TableArgumentValue( - int sourceIndex, - boolean rowSemantics, - boolean pruneWhenEmpty, - boolean passThroughColumns, - Optional> specification, - Set passThroughSymbols) + public TableArgumentValue { - this.sourceIndex = sourceIndex; - this.rowSemantics = rowSemantics; - this.pruneWhenEmpty = pruneWhenEmpty; - this.passThroughColumns = passThroughColumns; - this.specification = requireNonNull(specification, "specification is null"); - this.passThroughSymbols = ImmutableSet.copyOf(passThroughSymbols); + requireNonNull(specification, "specification is null"); + passThroughSymbols = ImmutableSet.copyOf(passThroughSymbols); } public static class Builder