Skip to content

Commit

Permalink
chore: comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kadinrabo committed Oct 4, 2024
1 parent 3a25e3b commit f4723f7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/src/main/java/io/substrait/relation/Set.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
public abstract class Set extends AbstractRel implements HasExtension {
public abstract Set.SetOp getSetOp();

// MINUS_MULTISET and INTERSECTION_PRIMARY are set to be removed (substrait-io/substrait/pull/708)
// MINUS_MULTISET and INTERSECTION_PRIMARY mappings are set to be removed due to no direct SQL mapping (substrait-io/substrait/pull/708)
public static enum SetOp {
UNKNOWN(SetRel.SetOp.SET_OP_UNSPECIFIED),
MINUS_PRIMARY(SetRel.SetOp.SET_OP_MINUS_PRIMARY),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,7 @@ public RelNode visit(Set set) throws RuntimeException {
input -> {
relBuilder.push(input.accept(this));
});
// MINUS_MULTISET and INTERSECTION_PRIMARY are set to be removed
// (substrait-io/substrait/pull/708)
// MINUS_MULTISET and INTERSECTION_PRIMARY mappings are set to be removed due to no direct SQL mapping (substrait-io/substrait/pull/708)
var builder =
switch (set.getSetOp()) {
case MINUS_PRIMARY -> relBuilder.minus(false, numInputs);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public static String getSetQuery(Set.SetOp op, boolean multi) {
}

// Generate all combinations excluding the UNKNOWN operator
// MINUS_MULTISET and INTERSECTION_PRIMARY are set to be removed (substrait-io/substrait/pull/708)
// Note: MINUS_MULTISET and INTERSECTION_PRIMARY mappings to Calcite are set to be removed due to no direct SQL mapping (substrait-io/substrait/pull/708)
public static Stream<Arguments> setTestConfig() {
return Arrays.stream(Set.SetOp.values())
.filter(
Expand Down

0 comments on commit f4723f7

Please sign in to comment.