Re: How to parse sql of DDL

2020-11-04 Thread xiao cai
Hi Liya: Althrough that can not meet my needs,but it still helps me a lot, thank you very much for your reply. Best, Xiao. 原始邮件 发件人: Fan Liya 收件人: dev 发送时间: 2020年11月4日(周三) 11:35 主题: Re: How to parse sql of DDL Hi Xiao, I am not sure if we support "alter table ... add column ... after ...

Re: How to parse sql of DDL

2020-11-04 Thread Danny Chan
You can try the sql parser of Apache Flink, which supports the "ALTER TABLE ... ADD COLUMN ..." syntax. [1] [1] https://github.com/apache/flink/blob/master/flink-table/flink-sql-parser/src/test/java/org/apache/flink/sql/parser/FlinkSqlParserImplTest.java xiao cai 于2020年11月4日周三 下午4:25写道: > Hi Li

Re: How to parse sql of DDL

2020-11-04 Thread Viliam Durina
You might have a look at how we're adding DDL to Hazelcast Jet: https://github.com/hazelcast/hazelcast-jet/pull/2620 Have a look at the `parserImpls.ftl` file. Viliam On Wed, 4 Nov 2020 at 09:24, xiao cai wrote: > Hi Liya: > > > Althrough that can not meet my needs,but it still helps me a lot,

Re: Avatica's Meta.Frame appears to be unable to serialize float and char column values

2020-11-04 Thread Dmitri Bourlatchkov
Hi Julian, Apologies for pinging directly. Does the information below answer your previous question about this or would you like me to go into more details? Does it sound worth a Jira ticket (and PR)? Thanks, Dmitri. On Fri, 30 Oct 2020 at 17:25, Dmitri Bourlatchkov < dmitri.bourlatch...@gmail.

ASF builds meeting in 4 hours (1900 UTC)

2020-11-04 Thread Vladimir Sitnikov
Hi everybody, In ~4 hours (2020-11-04, 19:00 UTC) there will be the ASF meeting related to the build infrastructure. Here's the information: https://cwiki.apache.org/confluence/display/INFRA/ASF+Builds+Agenda I don't know what to expect, however, I think it might be interesting. Vladimir

[DISCUSS] Make SqlNodeList implement List

2020-11-04 Thread Julian Hyde
Currently class SqlNodeList [1] implements Iterable but it does not implement List. How do people feel about doing that? (Or Collection?) The main potential benefit is performance. Consider this code: SqlNodeList nodeList; ImmutableList immutableList1 = ImmutableList.copyOf(nodeList); List

Re: Avatica's Meta.Frame appears to be unable to serialize float and char column values

2020-11-04 Thread Julian Hyde
Thanks for the clarification. Yes, open a PR. Please don't assume that it will be me that reviews the PR. Julian On Wed, Nov 4, 2020 at 7:14 AM Dmitri Bourlatchkov wrote: > > Hi Julian, > > Apologies for pinging directly. Does the information below answer your > previous question about this or

Re: How to parse sql of DDL

2020-11-04 Thread Julian Hyde
The core parser does not parse DDL. This is intentional. There are other parsers, e.g. server, that parse a limited subset of DDL. It may or may not be the subset that you want. Julian On Wed, Nov 4, 2020 at 2:08 AM Viliam Durina wrote: > > You might have a look at how we're adding DDL to Hazel

[DISCUSS] State of the project 2020

2020-11-04 Thread Stamatis Zampetakis
Hi Calcite community members, A bit more than five years ago (October 22, 2015) Calcite graduated to a top-level Apache project[1]. At that time, the community decided to have an annual “state of the project” discussion and to vote for a new PMC chair/VP[2]. So, I’m kicking off both of those discu

Re: ASF builds meeting in 4 hours (1900 UTC)

2020-11-04 Thread Stamatis Zampetakis
The agenda seems quite interesting but didn't manage to join. Was there any discussion about the Docker pull limitations [1]? For the record, I filed an application [2] to see if it is possible to overcome these limitations for Calcite but I am not yet sure we need this. They got back to me a few

Re: ASF builds meeting in 4 hours (1900 UTC)

2020-11-04 Thread Vladimir Sitnikov
Stamatis>overcome these limitations for Calcite but I am not yet sure we need this Just in case, GitHub team works together with DockerHub, so GitHub-based runners won't be affected by DockerHub limits. The quick summary is as follows: a) Infra (Garvin?) talks to many vendors. For instance, tom

Re: [DISCUSS] Make SqlNodeList implement List

2020-11-04 Thread Chunwei Lei
Thank you for raising this, Julian. How much performance improvement can we get? Best, Chunwei On Thu, Nov 5, 2020 at 5:32 AM Julian Hyde wrote: > Currently class SqlNodeList [1] implements Iterable but it > does not implement List. How do people feel about doing that? > (Or Collection?) >

Re: [DISCUSS] Make SqlNodeList implement List<SqlNode>

2020-11-04 Thread Haisheng Yuan
The performance gain depends on the size of sqlnode list. I am in favor of making SqlNodeList implement List. +1 to the proposal. Haisheng Yuan On 2020/11/05 02:32:01, Chunwei Lei wrote: > Thank you for raising this, Julian. > > How much performance improvement can we get? > > > > Best, > C