You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "ulysses you (Jira)" <ji...@apache.org> on 2020/12/31 09:58:00 UTC
[jira] [Updated] (SPARK-33949) Make approx_count_distinct result
consistent whether Optimize rule exists or not
[ https://issues.apache.org/jira/browse/SPARK-33949?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ulysses you updated SPARK-33949:
--------------------------------
Description:
This code will fail because folabe value not fold, we should keep
{code:java}
val excludedRules = Seq(ConstantFolding, ReorderAssociativeOperator).map(_.ruleName)
withSQLConf(SQLConf.OPTIMIZER_EXCLUDED_RULES.key -> excludedRules.mkString(",")) {
sql("select approx_count_distinct(1, 0.01 + 0.02)")
}{code}
> Make approx_count_distinct result consistent whether Optimize rule exists or not
> --------------------------------------------------------------------------------
>
> Key: SPARK-33949
> URL: https://issues.apache.org/jira/browse/SPARK-33949
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 3.2.0
> Reporter: ulysses you
> Priority: Minor
>
> This code will fail because folabe value not fold, we should keep
> {code:java}
> val excludedRules = Seq(ConstantFolding, ReorderAssociativeOperator).map(_.ruleName)
> withSQLConf(SQLConf.OPTIMIZER_EXCLUDED_RULES.key -> excludedRules.mkString(",")) {
> sql("select approx_count_distinct(1, 0.01 + 0.02)")
> }{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org