-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add support for reduction operation in set comparison queries (#93
) This addresses issue #92 .
- Loading branch information
1 parent
504ce9e
commit 9a7ffa7
Showing
6 changed files
with
159 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
# "CREATE TABLE NATION (N_REGIONKEY BIGINT NOT NULL)" "SELECT * FROM NATION WHERE N_REGIONKEY < ANY (SELECT N_REGIONKEY FROM NATION)" | ||
{ | ||
"extensionUris": [], | ||
"extensions": [], | ||
"relations": [{ | ||
"root": { | ||
"input": { | ||
"project": { | ||
"common": { | ||
"emit": { | ||
"outputMapping": [1] | ||
} | ||
}, | ||
"input": { | ||
"filter": { | ||
"common": { | ||
"direct": { | ||
} | ||
}, | ||
"input": { | ||
"read": { | ||
"common": { | ||
"direct": { | ||
} | ||
}, | ||
"baseSchema": { | ||
"names": ["N_REGIONKEY"], | ||
"struct": { | ||
"types": [{ | ||
"i64": { | ||
"typeVariationReference": 0, | ||
"nullability": "NULLABILITY_REQUIRED" | ||
} | ||
}], | ||
"typeVariationReference": 0, | ||
"nullability": "NULLABILITY_REQUIRED" | ||
} | ||
}, | ||
"namedTable": { | ||
"names": ["NATION"] | ||
} | ||
} | ||
}, | ||
"condition": { | ||
"subquery": { | ||
"setComparison": { | ||
"comparisonOp": 3, | ||
"reductionOp": 1, | ||
"left": { | ||
"selection": { | ||
"directReference": { | ||
"structField": { | ||
"field": 0 | ||
} | ||
}, | ||
"rootReference": { | ||
} | ||
} | ||
}, | ||
"right": { | ||
"project": { | ||
"common": { | ||
"emit": { | ||
"outputMapping": [1] | ||
} | ||
}, | ||
"input": { | ||
"read": { | ||
"common": { | ||
"direct": { | ||
} | ||
}, | ||
"baseSchema": { | ||
"names": ["N_REGIONKEY"], | ||
"struct": { | ||
"types": [{ | ||
"i64": { | ||
"typeVariationReference": 0, | ||
"nullability": "NULLABILITY_REQUIRED" | ||
} | ||
}], | ||
"typeVariationReference": 0, | ||
"nullability": "NULLABILITY_REQUIRED" | ||
} | ||
}, | ||
"namedTable": { | ||
"names": ["NATION"] | ||
} | ||
} | ||
}, | ||
"expressions": [{ | ||
"selection": { | ||
"directReference": { | ||
"structField": { | ||
"field": 0 | ||
} | ||
}, | ||
"rootReference": { | ||
} | ||
} | ||
}] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"expressions": [{ | ||
"selection": { | ||
"directReference": { | ||
"structField": { | ||
"field": 0 | ||
} | ||
}, | ||
"rootReference": { | ||
} | ||
} | ||
}] | ||
} | ||
}, | ||
"names": ["N_REGIONKEY"] | ||
} | ||
}], | ||
"expectedTypeUrls": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters