Repository: zeppelin
Updated Branches:
  refs/heads/master 3183a5967 -> 79e8e76c4


[ZEPPELIN-2650] fix: DON'T set uppercase automatically for column names in table

### What is this PR for?

fix: DON'T set uppercase automatically for column names in a table

### What type of PR is it?
[Bug Fix]

### Todos

DONE

### What is the Jira issue?

[ZEPPELIN-2650](https://issues.apache.org/jira/browse/ZEPPELIN-2650)

### How should this be tested?

1. Create a table result
2. Check the column names

### Screenshots (if appropriate)

#### Before

![image](https://user-images.githubusercontent.com/4968473/27167154-51c6fdf2-51da-11e7-990c-ee8c3b8db10b.png)

#### After

![image](https://user-images.githubusercontent.com/4968473/27167147-44962cd4-51da-11e7-8339-8c14eee305ef.png)

### Questions:
* Does the licenses files need update? - NO
* Is there breaking changes for older versions? - NO
* Does this needs documentation? - NO

Author: 1ambda <[email protected]>

Closes #2411 from 1ambda/ZEPPELIN-2650/do-not-apply-uppercase-for-column-name 
and squashes the following commits:

fd1efd341 [1ambda] fix: SparkIT
b5afb5ae3 [1ambda] fix: Set displayName to colDef to use original col name


Project: http://git-wip-us.apache.org/repos/asf/zeppelin/repo
Commit: http://git-wip-us.apache.org/repos/asf/zeppelin/commit/79e8e76c
Tree: http://git-wip-us.apache.org/repos/asf/zeppelin/tree/79e8e76c
Diff: http://git-wip-us.apache.org/repos/asf/zeppelin/diff/79e8e76c

Branch: refs/heads/master
Commit: 79e8e76c495f9bb3f511868bcd72236c36e48d8f
Parents: 3183a59
Author: 1ambda <[email protected]>
Authored: Fri Jun 16 12:57:07 2017 +0900
Committer: Khalid Huseynov <[email protected]>
Committed: Thu Jun 22 11:01:30 2017 +0900

----------------------------------------------------------------------
 .../java/org/apache/zeppelin/integration/SparkParagraphIT.java     | 2 +-
 zeppelin-web/src/app/visualization/builtins/visualization-table.js | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/zeppelin/blob/79e8e76c/zeppelin-server/src/test/java/org/apache/zeppelin/integration/SparkParagraphIT.java
----------------------------------------------------------------------
diff --git 
a/zeppelin-server/src/test/java/org/apache/zeppelin/integration/SparkParagraphIT.java
 
b/zeppelin-server/src/test/java/org/apache/zeppelin/integration/SparkParagraphIT.java
index 0aa0354..9b651c1 100644
--- 
a/zeppelin-server/src/test/java/org/apache/zeppelin/integration/SparkParagraphIT.java
+++ 
b/zeppelin-server/src/test/java/org/apache/zeppelin/integration/SparkParagraphIT.java
@@ -193,7 +193,7 @@ public class SparkParagraphIT extends AbstractZeppelinIT {
       }
 
       collector.checkThat("Paragraph from SparkParagraphIT of testSqlSpark 
result: ",
-          headerNames, 
CoreMatchers.equalTo("Age|Job|Marital|Education|Balance|"));
+          headerNames, 
CoreMatchers.equalTo("age|job|marital|education|balance|"));
     } catch (Exception e) {
       handleException("Exception in SparkParagraphIT while testSqlSpark", e);
     }

http://git-wip-us.apache.org/repos/asf/zeppelin/blob/79e8e76c/zeppelin-web/src/app/visualization/builtins/visualization-table.js
----------------------------------------------------------------------
diff --git a/zeppelin-web/src/app/visualization/builtins/visualization-table.js 
b/zeppelin-web/src/app/visualization/builtins/visualization-table.js
index f8c280a..cdfaa7e 100644
--- a/zeppelin-web/src/app/visualization/builtins/visualization-table.js
+++ b/zeppelin-web/src/app/visualization/builtins/visualization-table.js
@@ -86,6 +86,7 @@ export default class TableVisualization extends Visualization 
{
 
       columnDefs: columnNames.map(colName => {
         return {
+          displayName: colName,
           name: colName,
           type: DefaultTableColumnType,
           cellTemplate: `

Reply via email to