Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add first last any aggs #1141

Merged
merged 16 commits into from
Feb 25, 2021
Merged

Add first last any aggs #1141

merged 16 commits into from
Feb 25, 2021

Conversation

sgoplani
Copy link
Contributor

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.

Copy link
Contributor

@michael-mclawhorn michael-mclawhorn left a comment

Choose a reason for hiding this comment

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

I'd like us to tweak the serialization of the column so that the virtual columns isn't serialized if empty. Alternatively instead of defaulting to empty set you could default to null, which I believe will avoid serializing the virtual columns as well.

VirtualColumnType getType();

/**
* Get the expression of the virtual column in the response.
Copy link
Contributor

Choose a reason for hiding this comment

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

I suspect we should pull this from the interface, since the expression virtual column may be the only one that uses it.
Obviously I'm speculating since there's exactly one. But I like your instinct to make a type to avoid refactoring interfaces later.


import org.joda.time.Interval;

import java.util.Collection;
import java.util.Optional;
import java.util.*;
Copy link
Contributor

Choose a reason for hiding this comment

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

your IDE is globbing imports when it shouldn't. There's a setting for this in IDEA assuming that's what you're using.

@sgoplani sgoplani merged commit 850ddd9 into yahoo:master Feb 25, 2021
@sgoplani sgoplani deleted the AddFirstLastAnyAggs branch February 25, 2021 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants