Uh oh!
There was an error while loading. Please reload this page.
[SPARK-16288][SQL] Implement inline table generating function - #13976
[SPARK-16288][SQL] Implement inline table generating function#13976dongjoon-hyun wants to merge 6 commits into
Conversation
SparkQA
commented
Jun 29, 2016
Test build #61479 has finished for PR 13976 at commit
|
dongjoon-hyun
commented
Jun 29, 2016
The failure seems to be irrelevant to this PR. |
dongjoon-hyun
commented
Jun 29, 2016
Retest this please. |
SparkQA
commented
Jun 29, 2016
Test build #61494 has finished for PR 13976 at commit
|
SparkQA
commented
Jun 30, 2016
Test build #61542 has finished for PR 13976 at commit
|
dongjoon-hyun
commented
Jun 30, 2016
rxin
commented
Jun 30, 2016
looks pretty good. I will let @cloud-fan review and do the merge. |
dongjoon-hyun
commented
Jun 30, 2016
Yep. Thank you, @rxin . |
SparkQA
commented
Jun 30, 2016
Test build #61562 has finished for PR 13976 at commit
|
There was a problem hiding this comment.
how about
StructType(et.fields.zipWithIndex.map {
case (field, index) => StructField(s"col{$index + 1}", field.dataType, nullable = field.nullable)
})
dongjoon-hyun
commented
Jul 1, 2016
Thank you, @cloud-fan . :) I've learn a lot in this PR again.
|
SparkQA
commented
Jul 1, 2016
Test build #61615 has finished for PR 13976 at commit
|
| override def elementSchema: StructType = child.dataType match { | ||
| case ArrayType(et : StructType, _) => | ||
| StructType(et.fields.zipWithIndex.map { |
There was a problem hiding this comment.
Yep. Currently, our type checker ensures that homogeneous StructType array.
There was a problem hiding this comment.
Oh, my god. I was too naive, here.
Thank you!
dongjoon-hyun
commented
Jul 1, 2016
Thank you, @cloud-fan . |
SparkQA
commented
Jul 1, 2016
Test build #61622 has started for PR 13976 at commit |
shaneknapp
commented
Jul 1, 2016
jenkins, test this please |
dongjoon-hyun
commented
Jul 1, 2016
Thank you, @shaneknapp ! :) |
shaneknapp
commented
Jul 1, 2016
no problem... sorry i had to kill it, but i wanted to get a quick jenkins restart in. :) |
SparkQA
commented
Jul 1, 2016
Test build #61624 has finished for PR 13976 at commit
|
| Row(3) :: Nil) | ||
| } | ||
| test("inline raises exception on empty array") { |
dongjoon-hyun
commented
Jul 2, 2016
Thank you, @cloud-fan . |
SparkQA
commented
Jul 2, 2016
Test build #61647 has finished for PR 13976 at commit
|
dongjoon-hyun
commented
Jul 3, 2016
Oh, I found a bug and am working on this. |
dongjoon-hyun
commented
Jul 3, 2016
Actually, that is not a bug, but I found that there exists a little difference between Spark and Hive with the following query. In short, Spark does more strict type-checking, e.g., I only add more tests to clarify the cases. We cannot touch that because it depends on many things. The following query is a workaround which both Spark/Hive work. |
SparkQA
commented
Jul 3, 2016
Test build #61669 has finished for PR 13976 at commit
|
SparkQA
commented
Jul 3, 2016
Test build #61670 has finished for PR 13976 at commit
|
SparkQA
commented
Jul 3, 2016
Test build #61676 has finished for PR 13976 at commit
|
| Nil | ||
| } else { | ||
| for (i <- 0 until inputArray.numElements()) | ||
| yield inputArray.getStruct(i, numFields) |
There was a problem hiding this comment.
I'm not sure how is the performance of for-yield, maybe it's safe to create an array manually and use while loop here?
There was a problem hiding this comment.
Thank you, @cloud-fan . By the way, for about this, @rxin gave me an advice at the first commit of this PR.
we don't need to materialize the array, do we? We can create an iterator to return the results.
There was a problem hiding this comment.
ah i see, for-yield returns an iterator.
cloud-fan
commented
Jul 3, 2016
merging to master, thanks! |
dongjoon-hyun
commented
Jul 3, 2016
Thank you, @cloud-fan and @rxin ! :) |
This PR implements `inline` table generating function. Pass the Jenkins tests with new testcase. Author: Dongjoon Hyun <dongjoon@apache.org> Closes#13976 from dongjoon-hyun/SPARK-16288. (cherry picked from commit 88134e7) Signed-off-by: Reynold Xin <rxin@databricks.com>
### What changes were proposed in this pull request? The pr aims to upgrade `netty` from `4.1.109.Final` to `4.1.110.Final`. ### Why are the changes needed? - https://netty.io/news/2024/05/22/4-1-110-Final.html This version has brought some bug fixes and improvements, such as: Fix Zstd throws Exception on read-only volumes (netty/netty#13982) Add unix domain socket transport in netty 4.x via JDK16+ ([#13965](netty/netty#13965)) Backport #13075: Add the AdaptivePoolingAllocator ([#13976](netty/netty#13976)) Add no-value key handling only for form body ([#13998](netty/netty#13998)) Add support for specifying SecureRandom in SSLContext initialization ([#14058](netty/netty#14058)) - https://github.com/netty/netty/issues?q=milestone%3A4.1.110.Final+is%3Aclosed ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Pass GA. ### Was this patch authored or co-authored using generative AI tooling? No. Closes#46744 from panbingkun/SPARK-48420. Authored-by: panbingkun <panbingkun@baidu.com> Signed-off-by: yangjie01 <yangjie01@baidu.com>
What changes were proposed in this pull request?
This PR implements
inlinetable generating function.How was this patch tested?
Pass the Jenkins tests with new testcase.