Skip to content

implemented UNION (and a few other query operators)#184

Open
markoszah wants to merge 4 commits intomainfrom
feature/union
Open

implemented UNION (and a few other query operators)#184
markoszah wants to merge 4 commits intomainfrom
feature/union

Conversation

@markoszah
Copy link
Member

No description provided.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jan 19, 2026
FN_MIN_MAX(41),

SEQ_AGGR(48),
SORT(47),
Copy link
Member

Choose a reason for hiding this comment

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

Swap SEQ_AGGR and SORT to maintain ascending order?

Copy link
Member Author

Choose a reason for hiding this comment

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

Done


if (!theRCB.reachedLimit()) {
reqCopy.setMaxReadKB(origRequest.getMaxReadKB() -
theRCB.getReadKB());
Copy link
Member

@jinzha jinzha Mar 13, 2026

Choose a reason for hiding this comment

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

The maxReadKB of QueryRequest must be >=0. If origRequest.maxReadKB is not specified, it defaults to 0, then origRequest.getMaxReadKB() - theRCB.getReadKB() is negative and results in an IllegalArgumentException.

     public QueryRequest setMaxReadKB(int maxReadKB) {
        if (maxReadKB < 0) {
            throw new IllegalArgumentException("maxReadKB must be >= 0");
        }
        this.maxReadKB = maxReadKB;
        return this;
    }

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point! To simplify things, I have modified the UnionIter so that when it gets done with the current branch it suspends the query instead of moving to the next branch (and thus sending another remote request).

Copy link
Member

Choose a reason for hiding this comment

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

The Javadoc for the parameters proxyStatement, namespace, and tableName should be updated accordingly.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants