flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tillrohrmann <...@git.apache.org>
Subject [GitHub] flink pull request: FLINK-3579 Improve String concatenation (Ram)
Date Wed, 30 Mar 2016 14:25:00 GMT
Github user tillrohrmann commented on a diff in the pull request:

    https://github.com/apache/flink/pull/1821#discussion_r57896997
  
    --- Diff: flink-libraries/flink-table/src/test/java/org/apache/flink/api/java/table/test/StringExpressionsITCase.java
---
    @@ -121,6 +120,66 @@ public void testNonWorkingSubstring2() throws Exception {
     		resultSet.collect();
     	}
     
    +	@Test
    +	public void testStringConcat() throws Exception {
    +		ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment();
    +		TableEnvironment tableEnv = new TableEnvironment();
    +
    +		DataSet<Tuple2<String, Integer>> ds = env.fromElements(
    +			new Tuple2<>("ABCD", 3),
    +			new Tuple2<>("ABCD", 2));
    +
    +		Table in = tableEnv.fromDataSet(ds, "a, b");
    +
    +		Table result = in
    +			.select("a + b + 42");
    --- End diff --
    
    Just out of curiosity and because I'm at a loss here, why does `a + 42.abs().cast(STRING)`
does not work?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message