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

DRILL-4491: FormatPluginOptionsDescriptor requires FormatPluginConfig… #418

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

adityakishore
Copy link
Member

… fields to be public

@jaltekruse
Copy link
Contributor

Is there a way to ask Jackson to look at a POJO and give you what it considers to be the serializable fields? This isn't quite the right fix because it is valid to have private members in a class and only have some of the serialized and deserialized by Jackson based on gettters/setters. This would expose the non-serializable fields as options.

@adityakishore
Copy link
Member Author

Until I looked at the code, I was under assumption that we are using Jackson to extract the serializable properties. We can, and should, definitely go that route.

The way code currently works is that it iterate through allthe table options and see if there is a Java field present in the corresponding FormatPluginConfig class. If it does find one, and this is why I say it is a bug in the current implementation, it makes is accessible (setAccesible(true)) implying that it is expected to work with non-public fields and sets the value to the one passed as parameter.

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