Skip to content

Conversation

@jaceklaskowski
Copy link
Contributor

@jaceklaskowski jaceklaskowski commented Jul 22, 2016

What changes were proposed in this pull request?

Build fix for [SPARK-16287][SQL] Implement str_to_map SQL function that has introduced this compilation error:

/Users/jacek/dev/oss/spark/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/complexTypeCreator.scala:402: error: annotation argument needs to be a constant; found: "_FUNC_(text[, pairDelim, keyValueDelim]) - Creates a map after splitting the text ".+("into key/value pairs using delimiters. ").+("Default delimiters are \',\' for pairDelim and \':\' for keyValueDelim.")
    "into key/value pairs using delimiters. " +
                                              ^

How was this patch tested?

Local build

@jaceklaskowski jaceklaskowski changed the title [HOTFIX] Fix annotation argument needs to be a constant [HOTFIX][BUILD][SPARK-16287][SQL] Fix annotation argument needs to be a constant Jul 22, 2016
@jaceklaskowski
Copy link
Contributor Author

/cc @cloud-fan @techaddict

@cloud-fan
Copy link
Contributor

I'm wondering why that PR passed all tests...

LGTM, pending jenkins, thanks for finding this out!

@techaddict
Copy link
Contributor

@jaceklaskowski thanks for finding this out. Its weird it passed locally too.

@jaceklaskowski
Copy link
Contributor Author

I'm on Java 8. I bet you are not. True?

Also, I remembered how to fix it since this kind of error happened in the past few times.

@dongjoon-hyun
Copy link
Member

dongjoon-hyun commented Jul 22, 2016

I remember that I did the same mistake and @jaceklaskowski helped me at that time. :)

@SparkQA
Copy link

SparkQA commented Jul 22, 2016

Test build #62718 has finished for PR 14315 at commit ee34380.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@srowen
Copy link
Member

srowen commented Jul 22, 2016

Merged to master/2.0

@asfgit asfgit closed this in e1bd70f Jul 22, 2016
asfgit pushed a commit that referenced this pull request Jul 22, 2016
… a constant

## What changes were proposed in this pull request?

Build fix for [SPARK-16287][SQL] Implement str_to_map SQL function that has introduced this compilation error:

```
/Users/jacek/dev/oss/spark/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/complexTypeCreator.scala:402: error: annotation argument needs to be a constant; found: "_FUNC_(text[, pairDelim, keyValueDelim]) - Creates a map after splitting the text ".+("into key/value pairs using delimiters. ").+("Default delimiters are \',\' for pairDelim and \':\' for keyValueDelim.")
    "into key/value pairs using delimiters. " +
                                              ^
```

## How was this patch tested?

Local build

Author: Jacek Laskowski <jacek@japila.pl>

Closes #14315 from jaceklaskowski/build-fix-complexTypeCreator.

(cherry picked from commit e1bd70f)
Signed-off-by: Sean Owen <sowen@cloudera.com>
@jaceklaskowski jaceklaskowski deleted the build-fix-complexTypeCreator branch July 22, 2016 12:11
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.

6 participants