-
Notifications
You must be signed in to change notification settings - Fork 409
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
BUG: Hive generator generates nullable HiveLists #644
Comments
up |
Would be nice to get this solved. Any updates? As a work-around I modify the generated code from this: (fields[0] as HiveList)?.castHiveList(), to this: (fields[0] as HiveList).castHiveList(), Just ensuring this is an accepted way to work around the problem? Although, ideally I wouldn't want to modify the generated code. Obviously. |
Seconded. Still experiencing this issue. I don't see why replacing |
After working with Hive for a few days I've had no trouble with replacing |
I'm a bit busy those days, so fixing this issue might take some time. If anybody wants to work on this issue PRs are appreciated (let me know if you need assistance) 😊 |
Got it, found the issue. I'll open a PR soon. |
Minimal working example:
The (redacted) generated code is as follow:
The (type) error is:
The line
(fields[0] as HiveList)?.castHiveList()
is wrong because is nullable butfriends
is not. Here the problem is the use of the?.
operator over a non nullable expression ((fields[0] as HiveList)
)The text was updated successfully, but these errors were encountered: