Skip to content

Conversation

@tarekbecker
Copy link
Contributor

@tarekbecker
Copy link
Contributor Author

Jenkins, ok to test

@SparkQA
Copy link

SparkQA commented Jul 21, 2015

Test build #1128 has finished for PR 7546 at commit 10b4de8.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • case class StringFormat(children: Expression*) extends Expression

@SparkQA
Copy link

SparkQA commented Jul 21, 2015

Test build #1131 has finished for PR 7546 at commit 10b4de8.

  • This patch passes all 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.

We should probably add ImplicitCastInputTypes with a string for the first argument and AnyDataType for remaining children.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I do have to split the signature for this to StringFormat(string: Expression, args: Expression*), don't I?

Copy link
Contributor

Choose a reason for hiding this comment

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

No, I don't think so. We just zip with children to check the types so I think it can work either way. Just remember to subtract 1 when figuring out how many AnyDataTypes to fill in.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@marmbrus Is this what you proposed?

Copy link
Contributor

Choose a reason for hiding this comment

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

This works. I think StringType :: List.fill(children.size - 1)(AnyDataType) might be a little more clear.

@marmbrus
Copy link
Contributor

Thanks! I'm going to merge to master.

@asfgit asfgit closed this in 7f072c3 Jul 21, 2015
asfgit pushed a commit that referenced this pull request Jul 21, 2015
This reverts commit 7f072c3.

Revert #7546

Author: Michael Armbrust <[email protected]>

Closes #7570 from marmbrus/revert9154 and squashes the following commits:

ed2c32a [Michael Armbrust] Revert "[SPARK-9154] [SQL] codegen StringFormat"
asfgit pushed a commit that referenced this pull request Jul 21, 2015
Jira: https://issues.apache.org/jira/browse/SPARK-9154

fixes bug of #7546

marmbrus I can't reopen the other PR, because I didn't closed it. Can you trigger Jenkins?

Author: Tarek Auel <[email protected]>

Closes #7571 from tarekauel/SPARK-9154 and squashes the following commits:

dcae272 [Tarek Auel] [SPARK-9154][SQL] build fix
1487602 [Tarek Auel] Merge remote-tracking branch 'upstream/master' into SPARK-9154
f512c5f [Tarek Auel] [SPARK-9154][SQL] build fix
a943d3e [Tarek Auel] [SPARK-9154] implicit input cast, added tests for null, support for null primitives
10b4de8 [Tarek Auel] [SPARK-9154][SQL] codegen removed fallback trait
cd8322b [Tarek Auel] [SPARK-9154][SQL] codegen string format
086caba [Tarek Auel] [SPARK-9154][SQL] codegen string format
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.

4 participants