arina-ielchiieva commented on a change in pull request #1856: DRILL-7376: Drill
ignores Hive schema for MaprDB tables when group scan has star column
URL: https://github.com/apache/drill/pull/1856#discussion_r324533708
##########
File path: exec/vector/src/main/codegen/templates/ComplexCopier.java
##########
@@ -142,19 +142,23 @@ private static FieldWriter
getListWriterForReader(FieldReader reader, ListWriter
return (FieldWriter) writer.<#if name ==
"Int">integer<#else>${uncappedName}</#if>();
<#elseif minor.class?contains("VarDecimal")>
case ${name?upper_case}:
- return (FieldWriter)
writer.${uncappedName}(reader.getType().getPrecision(),
reader.getType().getScale());
+ return (FieldWriter) writer.${uncappedName}(type.getPrecision(),
type.getScale());
</#if>
</#list></#list>
case MAP:
return (FieldWriter) writer.map();
case LIST:
return (FieldWriter) writer.list();
default:
- throw new UnsupportedOperationException(reader.getType().toString());
+ throw new UnsupportedOperationException(type.toString());
Review comment:
Please add some custom error message as well.
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services