[ https://issues.apache.org/jira/browse/DRILL-7362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16918636#comment-16918636 ]
ASF GitHub Bot commented on DRILL-7362: --------------------------------------- vvysotskyi commented on issue #1849: DRILL-7362: COUNT(*) on JSON with outer list results in JsonParse error URL: https://github.com/apache/drill/pull/1849#issuecomment-526189826 @oleg-zinovev, thanks for fixing this issue! Could you please reuse code from `JsonReader` class - for example, move required code to the parent class and extend classes which share the code. Also, you have added some additional parameters to the constructor, which may be omitted since they always have the same value. Please update the test case to check the returned result. One more thing - please assign Jira to yourself and mark it as "In progress" when you are starting working on it, and change its state to "Reviewable" when PR is opened (Thanks to @arina-ielchiieva for doing these things for you). For more details, connected with the development process, please refer to https://drill.apache.org/docs/apache-drill-contribution-guidelines/. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > COUNT(*) on JSON with outer list results in JsonParse error > ----------------------------------------------------------- > > Key: DRILL-7362 > URL: https://issues.apache.org/jira/browse/DRILL-7362 > Project: Apache Drill > Issue Type: Bug > Affects Versions: 1.16.0 > Reporter: Oleg Zinoviev > Assignee: Oleg Zinoviev > Priority: Major > Fix For: 1.17.0 > > > Count from a JSON file with a outer array results in JsonParseException: > Cannot read from the middle of a record. Current token was START_ARRAY. > P.S. A simple select from such file works normally. -- This message was sent by Atlassian Jira (v8.3.2#803003)