[GitHub] flink pull request #2282: [FLINK-3940] [table] Add support for ORDER BY OFFS...

2016-07-22 Thread wuchong
Github user wuchong commented on a diff in the pull request: https://github.com/apache/flink/pull/2282#discussion_r71898802 --- Diff: flink-libraries/flink-table/src/main/scala/org/apache/flink/api/table/plan/logical/operators.scala --- @@ -150,6 +150,41 @@ case class Sort(order

[GitHub] flink pull request #2282: [FLINK-3940] [table] Add support for ORDER BY OFFS...

2016-07-22 Thread wuchong
Github user wuchong commented on a diff in the pull request: https://github.com/apache/flink/pull/2282#discussion_r71898818 --- Diff: flink-libraries/flink-table/src/main/scala/org/apache/flink/api/table/plan/logical/operators.scala --- @@ -150,6 +150,41 @@ case class Sort(order

[GitHub] flink pull request #2280: [FLINK-4244] [docs] Field names for union operator...

2016-07-21 Thread wuchong
GitHub user wuchong opened a pull request: https://github.com/apache/flink/pull/2280 [FLINK-4244] [docs] Field names for union operator do not have to be equal We just merged FLINK-2985 , but not update the document. You can merge this pull request into a Git repository by running

[GitHub] flink pull request #2274: [FLINK-4180] [FLINK-4181] [table] add Batch SQL an...

2016-07-20 Thread wuchong
GitHub user wuchong opened a pull request: https://github.com/apache/flink/pull/2274 [FLINK-4180] [FLINK-4181] [table] add Batch SQL and Stream SQL and Stream Table API examples [FLINK-4180] [FLINK-4181] [table] add Batch SQL and Stream SQL and Stream Table API examples I

[GitHub] flink issue #2265: [FLINK-3097] [table] Add support for custom functions in ...

2016-07-19 Thread wuchong
Github user wuchong commented on the issue: https://github.com/apache/flink/pull/2265 Yes, I see. That's great! --- 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

[GitHub] flink issue #2265: [FLINK-3097] [table] Add support for custom functions in ...

2016-07-19 Thread wuchong
Github user wuchong commented on the issue: https://github.com/apache/flink/pull/2265 Yes, you are right. I'm just a little concerned about the class name of `ScalarFunction`, haha.. In addition, Java Table API should be `table.select("hashCode(text)");` which i

[GitHub] flink issue #2265: [FLINK-3097] [table] Add support for custom functions in ...

2016-07-18 Thread wuchong
Github user wuchong commented on the issue: https://github.com/apache/flink/pull/2265 Do we have any google docs or FLIP talking about this design ? I think the `ScalarFunction` has too many internal functions, and should not be exposed to users. Maybe we can create a new

[GitHub] flink issue #2159: [FLINK-3942] [tableAPI] Add support for INTERSECT

2016-07-08 Thread wuchong
Github user wuchong commented on the issue: https://github.com/apache/flink/pull/2159 @twalthr Thanks a lot. --- 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

[GitHub] flink issue #2120: [FLINK-4070] [tableApi] Support literals on left side of ...

2016-07-04 Thread wuchong
Github user wuchong commented on the issue: https://github.com/apache/flink/pull/2120 Hi @twalthr , I find that `expr` in `expressionDsl.scala` has done what we want. As we can do like this: `12.expr % 'f0` or `12 * 'f0.expr`. So do we need this PR just rename `expr

[GitHub] flink issue #2078: [FLINK-2985] Allow different field names for unionAll() i...

2016-07-04 Thread wuchong
Github user wuchong commented on the issue: https://github.com/apache/flink/pull/2078 Yes, you are right. Now this PR look good to me. 👍 --- 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

[GitHub] flink issue #2078: [FLINK-2985] Allow different field names for unionAll() i...

2016-07-03 Thread wuchong
Github user wuchong commented on the issue: https://github.com/apache/flink/pull/2078 Hi @gallenvara , I debug the `IndexOutOfBoundsException` exception of `testJoinWithDisjunctivePred`, and find this line [L526 in CodeGenerator](https://github.com/apache/flink/blob/master/flink

[GitHub] flink pull request #2078: [FLINK-2985] Allow different field names for union...

2016-07-03 Thread wuchong
Github user wuchong commented on a diff in the pull request: https://github.com/apache/flink/pull/2078#discussion_r69402729 --- Diff: flink-libraries/flink-table/src/main/scala/org/apache/flink/api/table/typeutils/RowTypeInfo.scala --- @@ -25,38 +25,25 @@ import

[GitHub] flink issue #2159: [FLINK-3942] [tableAPI] Add support for INTERSECT

2016-06-30 Thread wuchong
Github user wuchong commented on the issue: https://github.com/apache/flink/pull/2159 Thanks @fhueske for your review, I have addressed all the comments and squashed the commit. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub

[GitHub] flink issue #2182: [Flink-4130] CallGenerator could generate illegal code wh...

2016-06-29 Thread wuchong
Github user wuchong commented on the issue: https://github.com/apache/flink/pull/2182 Yah... the `isNull$17` is not declared if we do what I said above, and of course will throw compile error. The code looks good to me now, although it looks a little weird that `$nullTerm

[GitHub] flink pull request #2169: [FLINK-3943] Add support for EXCEPT operator

2016-06-29 Thread wuchong
Github user wuchong commented on a diff in the pull request: https://github.com/apache/flink/pull/2169#discussion_r69065352 --- Diff: flink-libraries/flink-table/src/main/scala/org/apache/flink/api/table/plan/logical/operators.scala --- @@ -236,6 +236,32 @@ case class Aggregate

[GitHub] flink pull request #2182: [Flink-4130] CallGenerator could generate illegal ...

2016-06-29 Thread wuchong
Github user wuchong commented on a diff in the pull request: https://github.com/apache/flink/pull/2182#discussion_r68969793 --- Diff: flink-libraries/flink-table/src/main/scala/org/apache/flink/api/table/codegen/calls/CallGenerator.scala --- @@ -43,11 +43,16 @@ object

[GitHub] flink pull request #2182: [Flink-4130] CallGenerator could generate illegal ...

2016-06-29 Thread wuchong
Github user wuchong commented on a diff in the pull request: https://github.com/apache/flink/pull/2182#discussion_r68969768 --- Diff: flink-libraries/flink-table/src/main/scala/org/apache/flink/api/table/codegen/calls/CallGenerator.scala --- @@ -43,11 +43,16 @@ object

[GitHub] flink pull request #2169: [FLINK-3943] Add support for EXCEPT operator

2016-06-28 Thread wuchong
Github user wuchong commented on a diff in the pull request: https://github.com/apache/flink/pull/2169#discussion_r68706865 --- Diff: flink-libraries/flink-table/src/main/scala/org/apache/flink/api/table/plan/logical/operators.scala --- @@ -236,6 +236,32 @@ case class Aggregate

[GitHub] flink pull request #2173: [FLINK-4109] [tableAPI] Change the name of ternary...

2016-06-27 Thread wuchong
GitHub user wuchong opened a pull request: https://github.com/apache/flink/pull/2173 [FLINK-4109] [tableAPI] Change the name of ternary condition operator It's better to use "?" than "eval()" for ternary condition operator in Table API since most people comming

[GitHub] flink issue #2169: [FLINK-3943] Add support for EXCEPT operator

2016-06-27 Thread wuchong
Github user wuchong commented on the issue: https://github.com/apache/flink/pull/2169 Hi @mushketyk, I think we should remove duplicate records in CoGroup instead of using `distinct`. Others looks good to me. --- If your project is set up for it, you can reply to this email

[GitHub] flink pull request #2169: [FLINK-3943] Add support for EXCEPT operator

2016-06-27 Thread wuchong
Github user wuchong commented on a diff in the pull request: https://github.com/apache/flink/pull/2169#discussion_r68689676 --- Diff: docs/apis/table.md --- @@ -873,7 +920,7 @@ val result = tableEnv.sql( Limitations -The current version of streaming SQL

[GitHub] flink pull request #2169: [FLINK-3943] Add support for EXCEPT operator

2016-06-27 Thread wuchong
Github user wuchong commented on a diff in the pull request: https://github.com/apache/flink/pull/2169#discussion_r68689427 --- Diff: docs/apis/table.md --- @@ -695,6 +718,30 @@ val result = left.unionAll(right); + Minus

[GitHub] flink pull request #2169: [FLINK-3943] Add support for EXCEPT operator

2016-06-27 Thread wuchong
Github user wuchong commented on a diff in the pull request: https://github.com/apache/flink/pull/2169#discussion_r68687942 --- Diff: flink-libraries/flink-table/src/main/scala/org/apache/flink/api/table/plan/logical/operators.scala --- @@ -236,6 +236,32 @@ case class Aggregate

[GitHub] flink pull request #2169: [FLINK-3943] Add support for EXCEPT operator

2016-06-27 Thread wuchong
Github user wuchong commented on a diff in the pull request: https://github.com/apache/flink/pull/2169#discussion_r68687402 --- Diff: flink-libraries/flink-table/src/main/scala/org/apache/flink/api/table/plan/nodes/dataset/DataSetMinus.scala --- @@ -0,0 +1,106

[GitHub] flink issue #2159: [FLINK-3942] [tableAPI] Add support for INTERSECT

2016-06-27 Thread wuchong
Github user wuchong commented on the issue: https://github.com/apache/flink/pull/2159 Hi @fhueske, that's a good idea to use CoGroup instead of Join. I updated the PR according to your advice. Meanwhile, I updated the document too (correct me if I describe wrong). NOTE

[GitHub] flink pull request #2159: [FLINK-3942] [tableAPI] Add support for INTERSECT

2016-06-24 Thread wuchong
GitHub user wuchong opened a pull request: https://github.com/apache/flink/pull/2159 [FLINK-3942] [tableAPI] Add support for INTERSECT Internally, I translate INTERSECT into a Join on all fields and then a distinct for removing duplicate records. As Calcite SQL Parser

[GitHub] flink issue #2102: [FLINK-4068] [tableAPI] Move constant computations out of...

2016-06-17 Thread wuchong
Github user wuchong commented on the issue: https://github.com/apache/flink/pull/2102 @twalthr That sounds great ! Thank you . --- 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

[GitHub] flink pull request #2120: [FLINK-4070] [tableApi] Support literals on left s...

2016-06-17 Thread wuchong
GitHub user wuchong opened a pull request: https://github.com/apache/flink/pull/2120 [FLINK-4070] [tableApi] Support literals on left side of binary expre… The Table API does not support literals on left side of expressions like `+,_,*,/,%,>,< `. Because there is a

[GitHub] flink issue #2102: [FLINK-4068] [tableAPI] Move constant computations out of...

2016-06-16 Thread wuchong
Github user wuchong commented on the issue: https://github.com/apache/flink/pull/2102 After introducing `RexExecutor` which make `ReduceExpressionRules` taking effect , many errors occurred. 1. The `cannot translate call AS($t0, $t1)` is a Calcite bug I think, and I

[GitHub] flink pull request #2102: [FLINK-4068] [tableAPI] Move constant computations...

2016-06-15 Thread wuchong
Github user wuchong commented on a diff in the pull request: https://github.com/apache/flink/pull/2102#discussion_r67276795 --- Diff: flink-libraries/flink-table/src/test/scala/org/apache/flink/api/scala/batch/sql/SelectITCase.scala --- @@ -146,4 +148,21 @@ class SelectITCase

[GitHub] flink pull request #2102: [FLINK-4068] [tableAPI] Move constant computations...

2016-06-15 Thread wuchong
GitHub user wuchong opened a pull request: https://github.com/apache/flink/pull/2102 [FLINK-4068] [tableAPI] Move constant computations out of code-generated The `ReduceExpressionsRule` rule can reduce constant expressions and replacing them with the corresponding constant. We

[GitHub] flink pull request: [docs] fix the active tab caption is not displ...

2016-03-04 Thread wuchong
GitHub user wuchong opened a pull request: https://github.com/apache/flink/pull/1763 [docs] fix the active tab caption is not displaying blue and a very very minor typo fix ![image](https://cloud.githubusercontent.com/assets/5378924/13525465/0c4c8544-e23c-11e5-9ea3

[GitHub] flink pull request: [FLINK-3577] [docs] Display anchor links when ...

2016-03-04 Thread wuchong
GitHub user wuchong opened a pull request: https://github.com/apache/flink/pull/1762 [FLINK-3577] [docs] Display anchor links when hovering over headers. This is useful to share the document url if display anchor links when hovering over headers. Currently we must scroll up

[GitHub] flink pull request: [docs] fix javascript exception caused by disq...

2016-03-02 Thread wuchong
GitHub user wuchong opened a pull request: https://github.com/apache/flink/pull/1756 [docs] fix javascript exception caused by disqus As we comment `` but not the disqus javascript. It will cause a exception like this: ![image](https://cloud.githubusercontent.com/assets

[GitHub] flink pull request: [docs] fix typos in Basic Concepts documentati...

2016-02-27 Thread wuchong
GitHub user wuchong opened a pull request: https://github.com/apache/flink/pull/1730 [docs] fix typos in Basic Concepts documentation fix typos in Basic Concepts documentation You can merge this pull request into a Git repository by running: $ git pull https://github.com

<    2   3   4   5   6   7