[ 
https://issues.apache.org/jira/browse/ORC-999?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Quanlong Huang updated ORC-999:
-------------------------------
    Description: 
Currently, the output of PredicateLeaf::toString() looks like
{code:java}
leaf-0 = (column(id=7) <= 132842), expr = (not leaf-0)
{code}
While debugging an issue, I realize that PredicateDataType of PredicateLeaf and 
Literal can be different (due to a mistake). It'd be helpful if we show the 
data type in toString() outputs, or introducing a toDebugString() method to 
provide more detailed info. E.g.
{code:java}
leaf-0 = (type: DECIMAL, expr: column(id=7) <= literal(type: LONG, value: 
132842)), expr = (not leaf-0)
{code}
CC [~wgtmac]

  was:
Currently, the output of PredicateLeaf::toString() looks like
{code}
leaf-0 = (column(id=7) <= 132842), expr = (not leaf-0)
{code}
While debugging an issue, I realize that PredicateDataType of PredicateLeaf and 
Literal can be different (due to a mistake). It'd be helpful if we show the 
data type in toString() outputs, or introducing a toDebugString() method to 
provide more detailed info.


> [C++] Add PredicateDataType in PredicateLeaf::toString() and 
> Literal::toString()
> --------------------------------------------------------------------------------
>
>                 Key: ORC-999
>                 URL: https://issues.apache.org/jira/browse/ORC-999
>             Project: ORC
>          Issue Type: Improvement
>          Components: C++
>    Affects Versions: 1.7.0
>            Reporter: Quanlong Huang
>            Assignee: Quanlong Huang
>            Priority: Major
>
> Currently, the output of PredicateLeaf::toString() looks like
> {code:java}
> leaf-0 = (column(id=7) <= 132842), expr = (not leaf-0)
> {code}
> While debugging an issue, I realize that PredicateDataType of PredicateLeaf 
> and Literal can be different (due to a mistake). It'd be helpful if we show 
> the data type in toString() outputs, or introducing a toDebugString() method 
> to provide more detailed info. E.g.
> {code:java}
> leaf-0 = (type: DECIMAL, expr: column(id=7) <= literal(type: LONG, value: 
> 132842)), expr = (not leaf-0)
> {code}
> CC [~wgtmac]



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

Reply via email to