You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Arina Ielchiieva (JIRA)" <ji...@apache.org> on 2018/08/29 09:59:00 UTC

[jira] [Comment Edited] (DRILL-6721) SchemalessScan cannot be deserialized by Jackson

    [ 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)