[ https://issues.apache.org/jira/browse/SPARK-25084?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xiao Li updated SPARK-25084: ---------------------------- Priority: Blocker (was: Major) > "distribute by" on multiple columns may lead to codegen issue > ------------------------------------------------------------- > > Key: SPARK-25084 > URL: https://issues.apache.org/jira/browse/SPARK-25084 > Project: Spark > Issue Type: Bug > Components: SQL > Affects Versions: 2.3.1 > Reporter: yucai > Priority: Blocker > > Test Query: > {code:java} > select * from store_sales distribute by (ss_sold_time_sk, ss_item_sk, > ss_customer_sk, ss_cdemo_sk, ss_addr_sk, ss_promo_sk, ss_ext_list_price, > ss_net_profit) limit 1000;{code} > Wrong Codegen: > {code:java} > /* 146 */ private int computeHashForStruct_0(InternalRow > mutableStateArray[0], int value1) { > /* 147 */ > /* 148 */ > /* 149 */ if (!mutableStateArray[0].isNullAt(0)) { > /* 150 */ > /* 151 */ final int element = mutableStateArray[0].getInt(0); > /* 152 */ value1 = > org.apache.spark.unsafe.hash.Murmur3_x86_32.hashInt(element, value1); > /* 153 */ > /* 154 */ }{code} > -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org