Skip to content

Conversation

@yjshen
Copy link
Member

@yjshen yjshen commented Jul 20, 2015

@yjshen yjshen force-pushed the array_struct_codegen branch from 3191341 to 39cefb8 Compare July 20, 2015 14:14
@yjshen
Copy link
Member Author

yjshen commented Jul 20, 2015

/cc @rxin

@SparkQA
Copy link

SparkQA commented Jul 21, 2015

Test build #1133 has finished for PR 7537 at commit 39cefb8.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add a test that includes null values?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added below.

@yjshen
Copy link
Member Author

yjshen commented Jul 21, 2015

Thanks @marmbrus , I would update my code soon.

@yjshen yjshen force-pushed the array_struct_codegen branch from 695ed31 to 5e90f0a Compare July 21, 2015 06:46
@SparkQA
Copy link

SparkQA commented Jul 21, 2015

Test build #1142 has finished for PR 7537 at commit 39cefb8.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • case class CreateArray(children: Seq[Expression]) extends Expression
    • case class CreateStruct(children: Seq[Expression]) extends Expression
    • case class CreateNamedStruct(children: Seq[Expression]) extends Expression

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry to nit-pick, but what is happening here is kind of confusing:

scala> List(1,2).+:(null)
res0: List[Any] = List(null, 1, 2)

Perhaps just use infix notation for operators:

scala> List(1,2) :+ null
res1: List[Any] = List(1, 2, null)

@asfgit asfgit closed this in 86f80e2 Jul 22, 2015
@marmbrus
Copy link
Contributor

Thanks! Merged to master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants