[jira] [Commented] (HIVE-19044) Duplicate field names within Druid Query Generated by Calcite plan

2018-04-04 Thread Hive QA (JIRA)

[ 
https://issues.apache.org/jira/browse/HIVE-19044?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16426443#comment-16426443
 ] 

Hive QA commented on HIVE-19044:




Here are the results of testing the latest attachment:
https://issues.apache.org/jira/secure/attachment/12917428/HIVE-19044.patch

{color:green}SUCCESS:{color} +1 due to 1 test(s) being added or modified.

{color:red}ERROR:{color} -1 due to 100 failed/errored test(s), 13181 tests 
executed
*Failed tests:*
{noformat}
TestBeeLineDriver - did not produce a TEST-*.xml file (likely timed out) 
(batchId=252)
TestCopyUtils - did not produce a TEST-*.xml file (likely timed out) 
(batchId=230)
TestDbNotificationListener - did not produce a TEST-*.xml file (likely timed 
out) (batchId=246)
TestDummy - did not produce a TEST-*.xml file (likely timed out) (batchId=252)
TestExportImport - did not produce a TEST-*.xml file (likely timed out) 
(batchId=230)
TestHCatHiveCompatibility - did not produce a TEST-*.xml file (likely timed 
out) (batchId=246)
TestJdbcWithMiniKdcSQLAuthHttp - did not produce a TEST-*.xml file (likely 
timed out) (batchId=253)
TestMiniDruidCliDriver - did not produce a TEST-*.xml file (likely timed out) 
(batchId=252)
TestMiniDruidKafkaCliDriver - did not produce a TEST-*.xml file (likely timed 
out) (batchId=252)
TestNegativeCliDriver - did not produce a TEST-*.xml file (likely timed out) 
(batchId=95)


[jira] [Commented] (HIVE-19044) Duplicate field names within Druid Query Generated by Calcite plan

2018-04-04 Thread Hive QA (JIRA)

[ 
https://issues.apache.org/jira/browse/HIVE-19044?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16426408#comment-16426408
 ] 

Hive QA commented on HIVE-19044:


| (x) *{color:red}-1 overall{color}* |
\\
\\
|| Vote || Subsystem || Runtime || Comment ||
|| || || || {color:brown} Prechecks {color} ||
| {color:green}+1{color} | {color:green} @author {color} | {color:green}  0m  
0s{color} | {color:green} The patch does not contain any @author tags. {color} |
|| || || || {color:brown} master Compile Tests {color} ||
|| || || || {color:brown} Patch Compile Tests {color} ||
| {color:green}+1{color} | {color:green} whitespace {color} | {color:green}  0m 
 0s{color} | {color:green} The patch has no whitespace issues. {color} |
|| || || || {color:brown} Other Tests {color} ||
| {color:red}-1{color} | {color:red} asflicense {color} | {color:red}  1m  
1s{color} | {color:red} The patch generated 50 ASF License warnings. {color} |
| {color:black}{color} | {color:black} {color} | {color:black}  1m 41s{color} | 
{color:black} {color} |
\\
\\
|| Subsystem || Report/Notes ||
| Optional Tests |  asflicense  |
| uname | Linux hiveptest-server-upstream 3.16.0-4-amd64 #1 SMP Debian 
3.16.36-1+deb8u1 (2016-09-03) x86_64 GNU/Linux |
| Build tool | maven |
| Personality | 
/data/hiveptest/working/yetus_PreCommit-HIVE-Build-10003/dev-support/hive-personality.sh
 |
| git revision | master / dc5a943 |
| asflicense | 
http://104.198.109.242/logs//PreCommit-HIVE-Build-10003/yetus/patch-asflicense-problems.txt
 |
| modules | C: ql U: ql |
| Console output | 
http://104.198.109.242/logs//PreCommit-HIVE-Build-10003/yetus.txt |
| Powered by | Apache Yetushttp://yetus.apache.org |


This message was automatically generated.



> Duplicate field names within Druid Query Generated by Calcite plan
> --
>
> Key: HIVE-19044
> URL: https://issues.apache.org/jira/browse/HIVE-19044
> Project: Hive
>  Issue Type: Bug
>  Components: Druid integration
>Reporter: slim bouguerra
>Assignee: slim bouguerra
>Priority: Major
> Attachments: HIVE-19044.patch
>
>
> Test case is attached to the Jira Patch



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


[jira] [Commented] (HIVE-19044) Duplicate field names within Druid Query Generated by Calcite plan

2018-04-03 Thread slim bouguerra (JIRA)

[ 
https://issues.apache.org/jira/browse/HIVE-19044?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16424486#comment-16424486
 ] 

slim bouguerra commented on HIVE-19044:
---

This patch is a test case that reproduce the issue, this can be merged when the 
calcite fix is merged and present at the Hive runtime libs.

> Duplicate field names within Druid Query Generated by Calcite plan
> --
>
> Key: HIVE-19044
> URL: https://issues.apache.org/jira/browse/HIVE-19044
> Project: Hive
>  Issue Type: Bug
>  Components: Druid integration
>Reporter: slim bouguerra
>Assignee: slim bouguerra
>Priority: Major
> Attachments: HIVE-19044.patch
>
>
> This is the Query plan as you can see "$f4" is duplicated.
> {code}
> PREHOOK: query: EXPLAIN SELECT Calcs.key AS none_key_nk,   SUM(Calcs.num0) AS 
> temp_z_stdevp_num0___1723718801__0_,   COUNT(Calcs.num0) AS 
> temp_z_stdevp_num0___2730138885__0_,   SUM((Calcs.num0 * Calcs.num0)) AS 
> temp_z_stdevp_num0___4071133194__0_,   STDDEV_POP(Calcs.num0) AS stp_num0_ok 
> FROM druid_tableau.calcs Calcs GROUP BY Calcs.key
> PREHOOK: type: QUERY
> POSTHOOK: query: EXPLAIN SELECT Calcs.key AS none_key_nk,   SUM(Calcs.num0) 
> AS temp_z_stdevp_num0___1723718801__0_,   COUNT(Calcs.num0) AS 
> temp_z_stdevp_num0___2730138885__0_,   SUM((Calcs.num0 * Calcs.num0)) AS 
> temp_z_stdevp_num0___4071133194__0_,   STDDEV_POP(Calcs.num0) AS stp_num0_ok 
> FROM druid_tableau.calcs Calcs GROUP BY Calcs.key
> POSTHOOK: type: QUERY
> STAGE DEPENDENCIES:
>   Stage-0 is a root stage
> STAGE PLANS:
>   Stage: Stage-0
> Fetch Operator
>   limit: -1
>   Processor Tree:
> TableScan
>   alias: calcs
>   properties:
> druid.fieldNames key,$f1,$f2,$f3,$f4
> druid.fieldTypes string,double,bigint,double,double
> druid.query.json 
> {"queryType":"groupBy","dataSource":"druid_tableau.calcs","granularity":"all","dimensions":[{"type":"default","dimension":"key","outputName":"key","outputType":"STRING"}],"limitSpec":{"type":"default"},"aggregations":[{"type":"doubleSum","name":"$f1","fieldName":"num0"},{"type":"filtered","filter":{"type":"not","field":{"type":"selector","dimension":"num0","value":null}},"aggregator":{"type":"count","name":"$f2","fieldName":"num0"}},{"type":"doubleSum","name":"$f3","expression":"(\"num0\"
>  * \"num0\")"},{"type":"doubleSum","name":"$f4","expression":"(\"num0\" * 
> \"num0\")"}],"postAggregations":[{"type":"expression","name":"$f4","expression":"pow(((\"$f4\"
>  - ((\"$f1\" * \"$f1\") / \"$f2\")) / 
> \"$f2\"),0.5)"}],"intervals":["1900-01-01T00:00:00.000Z/3000-01-01T00:00:00.000Z"]}
> druid.query.type groupBy
>   Select Operator
> expressions: key (type: string), $f1 (type: double), $f2 (type: 
> bigint), $f3 (type: double), $f4 (type: double)
> outputColumnNames: _col0, _col1, _col2, _col3, _col4
> ListSink
> {code}
> Table DDL 
> {code}
> create database druid_tableau;
> use druid_tableau;
> drop table if exists calcs;
> create table calcs
> STORED BY 'org.apache.hadoop.hive.druid.DruidStorageHandler'
> TBLPROPERTIES (
>   "druid.segment.granularity" = "MONTH",
>   "druid.query.granularity" = "DAY")
> AS SELECT
>   cast(datetime0 as timestamp with local time zone) `__time`,
>   key,
>   str0, str1, str2, str3,
>   date0, date1, date2, date3,
>   time0, time1,
>   datetime1,
>   zzz,
>   cast(bool0 as string) bool0,
>   cast(bool1 as string) bool1,
>   cast(bool2 as string) bool2,
>   cast(bool3 as string) bool3,
>   int0, int1, int2, int3,
>   num0, num1, num2, num3, num4
> from default.calcs_orc;
> {code}



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