-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
API, Core: Move SQLViewRepresentation to API #9302
Conversation
import org.immutables.value.Value; | ||
|
||
@Value.Immutable | ||
@Value.Include(value = SQLViewRepresentation.class) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@amogh-jahagirdar @Value.Include
is what does the trick. Here's what the Javadoc says:
Includes specified abstract value types into generation of processing.
This is usually used to generate immutable implementation of classes
from different packages that source code cannot be changed to place @Value.Immutable.
Only public types of suppored kinds is supported
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Ok good there's a way then to not duplicate the class and retain backwards compatibility.
thanks for the review @amogh-jahagirdar |
Could this be that the following error is caused by this change:
The error could be reproduced by:
|
@pvary did you see this error on CI or just when running |
I am using java 8 Previuosly, I have run this:
I have run the
I tried to find the indicated duplicate file, but failed. Sorry for the noise 😢 |
Maybe it was a gradle issue which is fixed by a clean build.... |
@pvary thanks for the input, I think that's quite helpful. I'll take a closer look and will provide an update once I know more. |
@pvary sorry I was not able to reproduce this. I checked out the commit prior to this PR, ran |
@nastra: I think we can skip this for now - still think this should be some caching issue on gradle side, which is very hard to repro so not too many people is affected |
This moves
SQLViewRepresentation
fromcore
to theapi
module mainly so that it's easier usable in the context of https://github.com/apache/iceberg/pull/9247/files#r1419759456