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

Kunal Khatua updated DRILL-6142:
--------------------------------
    Description: 
The minor fragments in the attached profile ( 
[^258f4b68-62ec-78b8-5bac-9331cccfa5fa[1].json] ) does not correctly mark the 
operator Id as 1 . It is defaulting to 0 (which, I suspect, means that the 
value was never set and is the default primitive value), making the WebUI count 
it as part of the Screen operator.

Also, the operatorType is incorrectly set as 10 ( {{PROJECT}} ) instead of 31 ( 
{{COMPLEX_TO_JSON}} )

*Original: *
{code:json}
                        {
                            "inputProfile": [
                                {
                                    "records": 1703936,
                                    "batches": 52,
                                    "schemas": 1
                                }
                            ],
                            "operatorId": 0,
                            "operatorType": 10,
                            "setupNanos": 2026811,
                            "processNanos": 32199443,
                            "peakLocalMemoryAllocated": 21639235,
                            "waitNanos": 0
                        }
{code}

*Correct:*
{code:json}
                        {
                            "inputProfile": [
                                {
                                    "records": 1703936,
                                    "batches": 52,
                                    "schemas": 1
                                }
                            ],
                            "operatorId": 1,
                            "operatorType": 31,
                            "setupNanos": 2026811,
                            "processNanos": 32199443,
                            "peakLocalMemoryAllocated": 21639235,
                            "waitNanos": 0
                        }
{code}

  was:
The minor fragments in the attached profile ( 
[^258f4b68-62ec-78b8-5bac-9331cccfa5fa[1].json] ) does not correctly mark the 
operator Id as 1 . It is defaulting to 0 (which, I suspect, means that the 
value was never set and is the default primitive value), making the WebUI count 
it as part of the Screen operator.

Also, the operatorType is incorrectly set as 10 ( {{PROJECT}} ) instead of 31 ( 
{{COMPLEX_TO_JSON}} )

*Original: *
{code:json}
                        {
                            "inputProfile": [
                                {
                                    "records": 1703936,
                                    "batches": 52,
                                    "schemas": 1
                                }
                            ],
                            "operatorId": 0,
                            "operatorType": 10,
                            "setupNanos": 2026811,
                            "processNanos": 32199443,
                            "peakLocalMemoryAllocated": 21639235,
                            "waitNanos": 0
                        }
{code}

*Correct:*
{code:json}
                        {
                            "inputProfile": [
                                {
                                    "records": 1703936,
                                    "batches": 52,
                                    "schemas": 1
                                }
                            ],
                            "operatorId": 1,
                            "operatorType": 13,
                            "setupNanos": 2026811,
                            "processNanos": 32199443,
                            "peakLocalMemoryAllocated": 21639235,
                            "waitNanos": 0
                        }
{code}


> Operator Id and Types are not correctly marked in Minor fragments
> -----------------------------------------------------------------
>
>                 Key: DRILL-6142
>                 URL: https://issues.apache.org/jira/browse/DRILL-6142
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Web Server
>    Affects Versions: 1.12.0
>            Reporter: Kunal Khatua
>            Priority: Minor
>             Fix For: 1.14.0
>
>         Attachments: 258f4b68-62ec-78b8-5bac-9331cccfa5fa[1].json
>
>
> The minor fragments in the attached profile ( 
> [^258f4b68-62ec-78b8-5bac-9331cccfa5fa[1].json] ) does not correctly mark the 
> operator Id as 1 . It is defaulting to 0 (which, I suspect, means that the 
> value was never set and is the default primitive value), making the WebUI 
> count it as part of the Screen operator.
> Also, the operatorType is incorrectly set as 10 ( {{PROJECT}} ) instead of 31 
> ( {{COMPLEX_TO_JSON}} )
> *Original: *
> {code:json}
>                         {
>                             "inputProfile": [
>                                 {
>                                     "records": 1703936,
>                                     "batches": 52,
>                                     "schemas": 1
>                                 }
>                             ],
>                             "operatorId": 0,
>                             "operatorType": 10,
>                             "setupNanos": 2026811,
>                             "processNanos": 32199443,
>                             "peakLocalMemoryAllocated": 21639235,
>                             "waitNanos": 0
>                         }
> {code}
> *Correct:*
> {code:json}
>                         {
>                             "inputProfile": [
>                                 {
>                                     "records": 1703936,
>                                     "batches": 52,
>                                     "schemas": 1
>                                 }
>                             ],
>                             "operatorId": 1,
>                             "operatorType": 31,
>                             "setupNanos": 2026811,
>                             "processNanos": 32199443,
>                             "peakLocalMemoryAllocated": 21639235,
>                             "waitNanos": 0
>                         }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to