Skip to content

Conversation

@chenghao-intel
Copy link
Contributor

SQL in HiveContext, should be case insensitive, however, the following query will fail.

udf.register("random0", ()  => { Math.random()})
assert(sql("SELECT RANDOM0() FROM src LIMIT 1").head().getDouble(0) >= 0.0)

@SparkQA
Copy link

SparkQA commented Feb 3, 2015

Test build #26625 has started for PR 4326 at commit 485cf66.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Feb 3, 2015

Test build #26625 has finished for PR 4326 at commit 485cf66.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • class SimpleFunctionRegistry(val caseSensitive: Boolean) extends FunctionRegistry
    • class StringKeyHashMap[T](normalizer: (String) => String)

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/26625/
Test PASSed.

asfgit pushed a commit that referenced this pull request Feb 3, 2015
SQL in HiveContext, should be case insensitive, however, the following query will fail.

```scala
udf.register("random0", ()  => { Math.random()})
assert(sql("SELECT RANDOM0() FROM src LIMIT 1").head().getDouble(0) >= 0.0)
```

Author: Cheng Hao <hao.cheng@intel.com>

Closes #4326 from chenghao-intel/udf_case_sensitive and squashes the following commits:

485cf66 [Cheng Hao] Support the case insensitive for UDF

(cherry picked from commit ca7a6cd)
Signed-off-by: Michael Armbrust <michael@databricks.com>
@asfgit asfgit closed this in ca7a6cd Feb 3, 2015
@marmbrus
Copy link
Contributor

marmbrus commented Feb 3, 2015

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.

4 participants