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.
@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.
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 |
(cherry picked from commit 8572c56)
This moves
SQLViewRepresentationfromcoreto theapimodule mainly so that it's easier usable in the context of https://github.com/apache/iceberg/pull/9247/files#r1419759456