Hi Timo, I'm +1 on the proposal. I like the idea to provide a Java DSL which is more friendly than string-based approach in programming. My concern is if/when we can drop the string-based expression parser. If it takes a very long time, we have to paid more development cost on the three Table APIs. As far as I know, the string-based API is used in many companies. We should also get some feedbacks from users. So I'm CCing this email to user mailing list. Best, Jark On Wed, 20 Mar 2019 at 08:51, Rong Rong <[hidden email]> wrote: Thanks for sharing the initiative of improving Java side Table expression |
Thanks for your feedback Rong and
Jark.
@Jark: Yes, you are right that the
string-based API is used quite a lot. On the other side, the
potential user base in the future is still bigger than our
current user base. Because the Table API will become equally
important as the DataStream API, we really need to fix some
crucial design decisions before it is too late. I would suggest
to introduce the new DSL in 1.9 and remove the Expression parser
either in 1.10 or 1.11. From a developement point of view, I
think we can handle the overhead to maintain 3 APIs until then
because 2 APIs will share the same code base + expression
parser.
Regards,
Timo
|
Hi Timo, Sounds good to me. Do you want to deprecate the string-based API in 1.9 or make the decision in 1.10 after some feedbacks ? On Thu, 21 Mar 2019 at 21:32, Timo Walther <[hidden email]> wrote:
|
Hi, I really like the idea of introducing Java Expression DSL. I think this will solve many problems e.g. right now it's quite tricky how string literals work in scala (sometimes it might go through the ExpressionParser and it will end up as an UnresolvedFieldReference), another important problem we could solve with this is the need for unique column names in tables right now. We could at some point introduce sth like: Table table = ... table.field("fieldName") and etc. A common "entry point" to expressions should simplify a
lot. Therefore I am strongly +1 for introducing this feature. @Jark I think we could aim to introduce the new Java DSL API in 1.9 and once we do that we could deprecate the string approach. Best, Dawid On 22/03/2019 03:36, Jark Wu wrote:
signature.asc (849 bytes) Download Attachment |
Thanks for bringing up this DISCUSS Timo! Java Expression DSL is pretty useful for java user. When we have the Java Expression DSL, Java API will become very rich and easy to use! +1 from my side. Best, Jincheng Dawid Wysakowicz <[hidden email]> 于2019年3月26日周二 下午5:08写道:
|
Free forum by Nabble | Edit this page |