[ 
https://issues.apache.org/jira/browse/DRILL-6721?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16596151#comment-16596151
 ] 

Arina Ielchiieva edited comment on DRILL-6721 at 8/29/18 9:58 AM:
------------------------------------------------------------------

It should have had {{@JsonCreator}} annotation over {{public 
SchemalessScan(String userName, String selectionRoot)}} and getter for 
{{selectionRoot}} for proper serialization / deserialization. Also it's better 
to annotate getter with {{@JsonProperty}} to indicate what for it is needed.


was (Author: arina):
It should have had {{@JsonCreator}} annotation over {{public 
SchemalessScan(String userName, String selectionRoot) }} and getter for 
{{selectionRoot}} for proper serialization / deserialization. Also it's better 
to annotate getter with {{@JsonProperty}} to indicate what for it is needed.

> SchemalessScan cannot be deserialized by Jackson
> ------------------------------------------------
>
>                 Key: DRILL-6721
>                 URL: https://issues.apache.org/jira/browse/DRILL-6721
>             Project: Apache Drill
>          Issue Type: Bug
>    Affects Versions: 1.13.0, 1.14.0
>            Reporter: Oleg Zinoviev
>            Priority: Major
>
> SchemalessScan has a JsonTypeName annotation, but default (or marked with 
> @JsonCreator) constructor is missing.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to