Skip to content

Conversation

@zhichao-li
Copy link
Contributor

@SparkQA
Copy link

SparkQA commented Jun 18, 2015

Test build #35099 has finished for PR 6872 at commit 0e35c54.

  • This patch fails Scala style tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • abstract class TernaryExpression extends Expression with trees.TernaryNode[Expression]
    • class ConvUtil
    • case class Conv(numExpr: Expression, fromBaseExpr: Expression, toBaseExpr: Expression)
    • trait TernaryNode[BaseType <: TreeNode[BaseType]]
    • // Add jar to isolated hive (metadataHive) class loader.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think you should rewrite this part in a more functional way.

Copy link
Contributor

Choose a reason for hiding this comment

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

And be private[sql] object

Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry, I mean trait.

@SparkQA
Copy link

SparkQA commented Jun 18, 2015

Test build #35101 has finished for PR 6872 at commit d4f3c4d.

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

@SparkQA
Copy link

SparkQA commented Jun 19, 2015

Test build #35215 has finished for PR 6872 at commit ac09a0b.

  • This patch fails MiMa tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • abstract class TernaryExpression extends Expression with trees.TernaryNode[Expression]
    • class ConvUtil
    • case class Conv(numExpr: Expression, fromBaseExpr: Expression, toBaseExpr: Expression)
    • trait TernaryNode[BaseType <: TreeNode[BaseType]]

@zhichao-li
Copy link
Contributor Author

retest this please

@SparkQA
Copy link

SparkQA commented Jun 19, 2015

Test build #35216 has finished for PR 6872 at commit ac09a0b.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • abstract class TernaryExpression extends Expression with trees.TernaryNode[Expression]
    • class ConvUtil
    • case class Conv(numExpr: Expression, fromBaseExpr: Expression, toBaseExpr: Expression)
    • trait TernaryNode[BaseType <: TreeNode[BaseType]]

@SparkQA
Copy link

SparkQA commented Jun 19, 2015

Test build #35223 has finished for PR 6872 at commit 4111d06.

  • This patch fails MiMa tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • abstract class TernaryExpression extends Expression with trees.TernaryNode[Expression]
    • class ConvUtil
    • case class Conv(numExpr: Expression, fromBaseExpr: Expression, toBaseExpr: Expression)
    • trait TernaryNode[BaseType <: TreeNode[BaseType]]

@SparkQA
Copy link

SparkQA commented Jun 19, 2015

Test build #35227 has finished for PR 6872 at commit c682481.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • abstract class TernaryExpression extends Expression with trees.TernaryNode[Expression]
    • class ConvUtil
    • case class Conv(numExpr: Expression, fromBaseExpr: Expression, toBaseExpr: Expression)
    • trait TernaryNode[BaseType <: TreeNode[BaseType]]

Copy link
Contributor

Choose a reason for hiding this comment

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

Ternary is a very rare case, and probably most of the code in this class are needed to be overrided for different TernaryExpressions, so how about move the logic into the Conv?

@SparkQA
Copy link

SparkQA commented Jun 24, 2015

Test build #35644 has finished for PR 6872 at commit d5c6249.

  • This patch fails MiMa tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • case class Conv(numExpr: Expression, fromBaseExpr: Expression, toBaseExpr: Expression)

@zhichao-li
Copy link
Contributor Author

retest this please.

@SparkQA
Copy link

SparkQA commented Jun 24, 2015

Test build #35648 has finished for PR 6872 at commit d5c6249.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • class LinearDataGenerator(object):
    • case class Conv(numExpr: Expression, fromBaseExpr: Expression, toBaseExpr: Expression)

@zhichao-li
Copy link
Contributor Author

retest this please.
it's due to time out onorg.apache.spark.sql.hive.thriftserver.CliSuite.Single command with --database

@zhichao-li zhichao-li changed the title [SPARK-8209[SQL][WIP]Add function conv [SPARK-8209[SQL]Add function conv Jun 26, 2015
@zhichao-li
Copy link
Contributor Author

cc @chenghao-intel @rxin

Copy link
Contributor

Choose a reason for hiding this comment

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

Probably more user cases of fromBase and the toBase will be represented as the real value, than the column names? What do you think?
@rxin we actually have some cases like this, do you think if we need to support both constant string values and column names for cases like this?

Copy link
Contributor

Choose a reason for hiding this comment

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

yes i agree. i think we can always use real value here

@SparkQA
Copy link

SparkQA commented Jul 17, 2015

Test build #37563 has finished for PR 6872 at commit e2bace3.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • case class Conv(numExpr: Expression, fromBaseExpr: Expression, toBaseExpr: Expression)

Copy link
Contributor

Choose a reason for hiding this comment

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

we need a lot more test cases here. please think hard about corner cases.

@rxin
Copy link
Contributor

rxin commented Jul 17, 2015

@zhichao-li this is really close. Let's add some test cases and then merge it.

Copy link
Contributor

Choose a reason for hiding this comment

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

can you add documentation for Conv itself?

@rxin
Copy link
Contributor

rxin commented Jul 17, 2015

LGTM

@SparkQA
Copy link

SparkQA commented Jul 17, 2015

Test build #37607 has finished for PR 6872 at commit 6ef3b37.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • case class Conv(numExpr: Expression, fromBaseExpr: Expression, toBaseExpr: Expression)

@rxin
Copy link
Contributor

rxin commented Jul 17, 2015

Thanks. I've merged this.

@asfgit asfgit closed this in 305e77c Jul 17, 2015
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.

5 participants