Skip to content

[HOTFIX][BUILD][SPARK-16287][SQL] Fix annotation argument needs to be a constant#14315

Closed
jaceklaskowski wants to merge 1 commit into
apache:masterfrom
jaceklaskowski:build-fix-complexTypeCreator
Closed

[HOTFIX][BUILD][SPARK-16287][SQL] Fix annotation argument needs to be a constant#14315
jaceklaskowski wants to merge 1 commit into
apache:masterfrom
jaceklaskowski:build-fix-complexTypeCreator

Conversation

@jaceklaskowski

@jaceklaskowski jaceklaskowski commented Jul 22, 2016

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor Author

/cc @cloud-fan @techaddict

@cloud-fan

Copy link
Copy Markdown
Contributor

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

LGTM, pending jenkins, thanks for finding this out!

@techaddict

Copy link
Copy Markdown
Contributor

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

@jaceklaskowski

Copy link
Copy Markdown
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

dongjoon-hyun commented Jul 22, 2016

Copy link
Copy Markdown
Member

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

@SparkQA

SparkQA commented Jul 22, 2016

Copy link
Copy Markdown

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

srowen commented Jul 22, 2016

Copy link
Copy Markdown
Member

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