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

Dongjoon Hyun commented on ORC-980:
-----------------------------------

One more thing because you are active contributor, [~planka]. :)
- The default branch of Apache ORC is `main`, not `master`. So, please use 
`1.8.0` instead of `master`.
- Apache ORC intentionally avoids *some words* as you see in our dev mailing 
list.

> Filter processing ignores the schema case-sensitivity flag
> ----------------------------------------------------------
>
>                 Key: ORC-980
>                 URL: https://issues.apache.org/jira/browse/ORC-980
>             Project: ORC
>          Issue Type: Bug
>          Components: Java
>    Affects Versions: 1.7.0, 1.8.0
>            Reporter: Pavan Lanka
>            Assignee: Pavan Lanka
>            Priority: Blocker
>
> The current SArg to Filter Conversion ignores the case-sensitivity setting 
> during read and always perform case-sensitive search of fields even when 
> asked to perform case-insensitive match using
> {quote}options()
>  .searchArgument(sarg{color:#cc7832}, new {color}String[] 
> {{color:#6a8759}"RIDX"{color}})
>  .allowSARGToFilter({color:#cc7832}true{color})
>  .isSchemaEvolutionCaseAware({color:#cc7832}false{color}){quote}
> leading to the following exceptions that the field is not found in the schema
> {quote}java.lang.IllegalArgumentException: Field RIDX not found in 
> struct<f1:bigint,f2:decimal(20,6),f3:bigint,f4:string,ridx:bigint>
> at org.apache.orc.impl.ParserUtils.findColumn(ParserUtils.java:399)
>  at org.apache.orc.impl.ParserUtils.findColumn(ParserUtils.java:337)
>  at org.apache.orc.impl.ParserUtils.findSubtype(ParserUtils.java:285)
>  at org.apache.orc.TypeDescription.findSubtype(TypeDescription.java:820)
>  at org.apache.orc.TypeDescription.findSubtype(TypeDescription.java:814)
>  at 
> org.apache.orc.impl.filter.leaf.LeafFilterFactory.createLeafVectorFilter(LeafFilterFactory.java:230)
>  at 
> org.apache.orc.impl.filter.FilterFactory.createSArgFilter(FilterFactory.java:123)
>  at 
> org.apache.orc.impl.filter.FilterFactory.createBatchFilter(FilterFactory.java:63)
>  at org.apache.orc.impl.RecordReaderImpl.<init>(RecordReaderImpl.java:284)
> {quote}
> SArg to Filter conversion should respect the case-sensitivity option as 
> supplied by the reader.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to