[incubator-pinot] branch release-0.4.0-update-binary updated (1f8eb46 -> 0872dbc)

2020-06-08 Thread haibow
This is an automated email from the ASF dual-hosted git repository.

haibow pushed a change to branch release-0.4.0-update-binary
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git.


 discard 1f8eb46  Add license
 discard 5518480  Update release note
 new 0872dbc  Update license

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (1f8eb46)
\
 N -- N -- N   refs/heads/release-0.4.0-update-binary (0872dbc)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 LICENSE-binary | 12 ++--
 1 file changed, 6 insertions(+), 6 deletions(-)


-
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org



[incubator-pinot] 01/01: Update license

2020-06-08 Thread haibow
This is an automated email from the ASF dual-hosted git repository.

haibow pushed a commit to branch release-0.4.0-update-binary
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git

commit 0872dbc15c29d0b83cbbeb6ad2a5b4f4d34a80d6
Author: Haibo Wang 
AuthorDate: Thu May 28 21:15:15 2020 -0700

Update license
---
 LICENSE-binary | 155 ++---
 NOTICE-binary  |  53 ++-
 .../LICENSE-gpl-2.0.txt|  53 ++-
 3 files changed, 209 insertions(+), 52 deletions(-)

diff --git a/LICENSE-binary b/LICENSE-binary
index 5c0e3e4..c31c11f 100644
--- a/LICENSE-binary
+++ b/LICENSE-binary
@@ -211,28 +211,32 @@ com.clearspring.analytics:stream:2.7.0
 com.fasterxml.jackson.core:jackson-annotations:2.9.8
 com.fasterxml.jackson.core:jackson-core:2.9.8
 com.fasterxml.jackson.core:jackson-databind:2.9.8
+com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.9.8
 com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.9.8
+com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.10.0
 com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:2.9.8
 com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.9.8
 com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.9.8
 com.fasterxml.jackson.module:jackson-module-paranamer:2.6.5
 com.fasterxml.jackson.module:jackson-module-scala_2.11:2.6.5
+com.fasterxml.woodstox:woodstox-core:5.0.3
 com.github.jnr:jffi:1.2.9
 com.github.jnr:jnr-constants:0.8.7
 com.github.jnr:jnr-ffi:2.0.3
+com.google.api-client:google-api-client
 com.google.api.grpc:proto-google-common-protos:1.17.0
 com.google.api.grpc:proto-google-iam-v1:0.13.0
 com.google.api:api-common:1.8.1
 com.google.api:gax:1.49.1
 com.google.api:gax-httpjson:0.66.1
-com.google.api:google-api-client:1.30.4
-com.google.api:google-api-services-storage:v1-rev20190910-1.30.3.jar
+com.google.apis:google-api-services-storage:v1-rev20190910-1.30.3
 com.google.auth:google-auth-library-credentials:0.18.0
 com.google.auth:google-auth-library-oauth2-http:0.18.0
 com.google.auto.value:auto-value-annotations:1.6.6
 com.google.cloud:google-cloud-core:1.91.3
 com.google.cloud:google-cloud-core-http:1.91.3
-com.google.cloud:google-cloud-storage:1.101.0
+com.google.cloud:google-cloud-nio:0.120.0-alpha
+com.google.cloud:google-cloud-storage:1.102.0
 com.google.code.findbugs:jsr305:3.0.0
 com.google.code.gson:gson:2.2.4
 com.google.errorprone:error_prone_annotations:2.3.2
@@ -240,21 +244,20 @@ com.google.guava:guava:20.0
 com.google.http-client:google-http-client-appengine:1.32.1
 com.google.http-client:google-http-client-jackson2:1.32.1
 com.google.http-client:google-http-client:1.32.1
-com.google.inject.extensions:guice-servlet:3.0
-com.google.inject:guice:3.0
 com.google.j2objc:j2objc-annotations:1.3
 com.google.oauth-client:google-oauth-client:1.30.3
 com.google.protobuf:protobuf-java-util:3.10.0
 com.google.protobuf:protobuf-java:2.5.0
 com.google.protobuf:protobuf-java:3.10.0
 com.jamesmurty.utils:java-xmlbuilder:0.4
+com.jamesmurty.utils:java-xmlbuilder:1.0
+com.jayway.jsonpath:json-path:2.4.0
 com.lmax:disruptor:3.3.4
 com.ning:async-http-client:1.9.21
 com.ning:compress-lzf:1.0.3
 com.tdunning:t-digest:3.2
-com.twitter:chill-java:0.8.0
-com.twitter:chill_2.11:0.8.0
-com.typesafe:config:1.3.2
+com.typesafe.netty:netty-reactive-streams-http:2.0.4
+com.typesafe.netty:netty-reactive-streams:2.0.4
 com.typesafe.scala-logging:scala-logging_2.11:3.9.0
 com.yammer.metrics:metrics-core:2.2.0
 commons-beanutils:commons-beanutils:1.8.3
@@ -271,15 +274,35 @@ commons-lang:commons-lang:2.6
 commons-logging:commons-logging:1.2
 commons-net:commons-net:3.1
 io.airlift:aircompressor:0.10
+io.confluent:common-config:5.3.1
+io.confluent:common-utils:5.3.1
+io.confluent:kafka-avro-serializer:5.3.1
+io.confluent:kafka-schema-registry-client:5.3.1
 io.dropwizard.metrics:metrics-core:3.2.3
-io.dropwizard.metrics:metrics-graphite:3.1.2
-io.dropwizard.metrics:metrics-json:3.1.2
-io.dropwizard.metrics:metrics-jvm:3.1.2
+io.dropwizard.metrics:metrics-graphite:3.2.3
+io.dropwizard.metrics:metrics-json:3.2.3
+io.dropwizard.metrics:metrics-jvm:3.2.3
 io.grpc:grpc-context:1.22.1
+io.netty:netty-all:4.1.42.Final
+io.netty:netty-buffer:4.1.42.Final
+io.netty:netty-codec-http2:4.1.42.Final
+io.netty:netty-codec-http:4.1.42.Final
+io.netty:netty-codec-socks:4.1.42.Final
+io.netty:netty-codec:4.1.42.Final
+io.netty:netty-common:4.1.42.Final
+io.netty:netty-handler-proxy:4.1.42.Final
+io.netty:netty-handler:4.1.42.Final
+io.netty:netty-resolver:4.1.42.Final
+io.netty:netty-tcnative-boringssl-static:2.0.26.Final
+io.netty:netty-transport-native-epoll:linux-x86_64:4.1.42.Final
+io.netty:netty-transport-native-unix-common:4.1.42.Final
+io.netty:netty-transport:4.1.42.Final
 io.netty:netty:3.9.6.Final
-io.netty:netty-all:4.1.28.Final
 io.opencensus:opencensus-api:0.24.0
 io.opencensus:opencensus-contrib-http-util:0.24.0

[incubator-pinot] 01/02: Update release note

2020-06-08 Thread haibow
This is an automated email from the ASF dual-hosted git repository.

haibow pushed a commit to branch release-0.4.0-update-binary
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git

commit 5518480296fcb12f0823e1fdefd81ea1b6ce55ad
Author: Haibo Wang 
AuthorDate: Thu May 28 21:15:15 2020 -0700

Update release note
---
 LICENSE-binary | 155 ++---
 NOTICE-binary  |  53 +++-
 2 files changed, 157 insertions(+), 51 deletions(-)

diff --git a/LICENSE-binary b/LICENSE-binary
index 5c0e3e4..04faf94 100644
--- a/LICENSE-binary
+++ b/LICENSE-binary
@@ -211,28 +211,32 @@ com.clearspring.analytics:stream:2.7.0
 com.fasterxml.jackson.core:jackson-annotations:2.9.8
 com.fasterxml.jackson.core:jackson-core:2.9.8
 com.fasterxml.jackson.core:jackson-databind:2.9.8
+com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.9.8
 com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.9.8
+com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.10.0
 com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:2.9.8
 com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.9.8
 com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.9.8
 com.fasterxml.jackson.module:jackson-module-paranamer:2.6.5
 com.fasterxml.jackson.module:jackson-module-scala_2.11:2.6.5
+com.fasterxml.woodstox:woodstox-core:5.0.3
 com.github.jnr:jffi:1.2.9
 com.github.jnr:jnr-constants:0.8.7
 com.github.jnr:jnr-ffi:2.0.3
+com.google.api-client:google-api-client
 com.google.api.grpc:proto-google-common-protos:1.17.0
 com.google.api.grpc:proto-google-iam-v1:0.13.0
 com.google.api:api-common:1.8.1
 com.google.api:gax:1.49.1
 com.google.api:gax-httpjson:0.66.1
-com.google.api:google-api-client:1.30.4
-com.google.api:google-api-services-storage:v1-rev20190910-1.30.3.jar
+com.google.apis:google-api-services-storage:v1-rev20190910-1.30.3
 com.google.auth:google-auth-library-credentials:0.18.0
 com.google.auth:google-auth-library-oauth2-http:0.18.0
 com.google.auto.value:auto-value-annotations:1.6.6
 com.google.cloud:google-cloud-core:1.91.3
 com.google.cloud:google-cloud-core-http:1.91.3
-com.google.cloud:google-cloud-storage:1.101.0
+com.google.cloud:google-cloud-nio:0.120.0-alpha
+com.google.cloud:google-cloud-storage:1.102.0
 com.google.code.findbugs:jsr305:3.0.0
 com.google.code.gson:gson:2.2.4
 com.google.errorprone:error_prone_annotations:2.3.2
@@ -240,21 +244,20 @@ com.google.guava:guava:20.0
 com.google.http-client:google-http-client-appengine:1.32.1
 com.google.http-client:google-http-client-jackson2:1.32.1
 com.google.http-client:google-http-client:1.32.1
-com.google.inject.extensions:guice-servlet:3.0
-com.google.inject:guice:3.0
 com.google.j2objc:j2objc-annotations:1.3
 com.google.oauth-client:google-oauth-client:1.30.3
 com.google.protobuf:protobuf-java-util:3.10.0
 com.google.protobuf:protobuf-java:2.5.0
 com.google.protobuf:protobuf-java:3.10.0
 com.jamesmurty.utils:java-xmlbuilder:0.4
+com.jamesmurty.utils:java-xmlbuilder:1.0
+com.jayway.jsonpath:json-path:2.4.0
 com.lmax:disruptor:3.3.4
 com.ning:async-http-client:1.9.21
 com.ning:compress-lzf:1.0.3
 com.tdunning:t-digest:3.2
-com.twitter:chill-java:0.8.0
-com.twitter:chill_2.11:0.8.0
-com.typesafe:config:1.3.2
+com.typesafe.netty:netty-reactive-streams-http:2.0.4
+com.typesafe.netty:netty-reactive-streams:2.0.4
 com.typesafe.scala-logging:scala-logging_2.11:3.9.0
 com.yammer.metrics:metrics-core:2.2.0
 commons-beanutils:commons-beanutils:1.8.3
@@ -271,15 +274,35 @@ commons-lang:commons-lang:2.6
 commons-logging:commons-logging:1.2
 commons-net:commons-net:3.1
 io.airlift:aircompressor:0.10
+io.confluent:common-config:5.3.1
+io.confluent:common-utils:5.3.1
+io.confluent:kafka-avro-serializer:5.3.1
+io.confluent:kafka-schema-registry-client:5.3.1
 io.dropwizard.metrics:metrics-core:3.2.3
-io.dropwizard.metrics:metrics-graphite:3.1.2
-io.dropwizard.metrics:metrics-json:3.1.2
-io.dropwizard.metrics:metrics-jvm:3.1.2
+io.dropwizard.metrics:metrics-graphite:3.2.3
+io.dropwizard.metrics:metrics-json:3.2.3
+io.dropwizard.metrics:metrics-jvm:3.2.3
 io.grpc:grpc-context:1.22.1
+io.netty:netty-all:4.1.42.Final
+io.netty:netty-buffer:4.1.42.Final
+io.netty:netty-codec-http2:4.1.42.Final
+io.netty:netty-codec-http:4.1.42.Final
+io.netty:netty-codec-socks:4.1.42.Final
+io.netty:netty-codec:4.1.42.Final
+io.netty:netty-common:4.1.42.Final
+io.netty:netty-handler-proxy:4.1.42.Final
+io.netty:netty-handler:4.1.42.Final
+io.netty:netty-resolver:4.1.42.Final
+io.netty:netty-tcnative-boringssl-static:2.0.26.Final
+io.netty:netty-transport-native-epoll:linux-x86_64:4.1.42.Final
+io.netty:netty-transport-native-unix-common:4.1.42.Final
+io.netty:netty-transport:4.1.42.Final
 io.netty:netty:3.9.6.Final
-io.netty:netty-all:4.1.28.Final
 io.opencensus:opencensus-api:0.24.0
 io.opencensus:opencensus-contrib-http-util:0.24.0
+io.projectreactor.addons:reactor-pool:0.1.0.RELEASE
+io.projectreactor.netty:reactor-netty:0.9.0.RELEASE

[incubator-pinot] 02/02: Add license

2020-06-08 Thread haibow
This is an automated email from the ASF dual-hosted git repository.

haibow pushed a commit to branch release-0.4.0-update-binary
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git

commit 1f8eb46e8bef20eb962c8052c032d7608f2a12ff
Author: Haibo Wang 
AuthorDate: Fri May 29 01:10:14 2020 -0700

Add license
---
 licenses-binary/LICENSE-gpl-2.0.txt | 641 
 1 file changed, 641 insertions(+)

diff --git a/licenses-binary/LICENSE-gpl-2.0.txt 
b/licenses-binary/LICENSE-gpl-2.0.txt
new file mode 100644
index 000..b4a4b30
--- /dev/null
+++ b/licenses-binary/LICENSE-gpl-2.0.txt
@@ -0,0 +1,641 @@
+Apache Pinot (incubating)
+Copyright 2018 The Apache Software Foundation
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
+
+// --
+// NOTICE file corresponding to the section 4d of The Apache License,
+// Version 2.0, in this case for 
+// --
+
+The HermiteInterpolator class and its corresponding test have been imported 
from
+the orekit library distributed under the terms of the Apache 2 licence. 
Original
+source copyright:
+Copyright 2010-2012 CS Systèmes d'Information
+===
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
+
+Apache Commons Configuration
+Copyright 2001-2008 The Apache Software Foundation
+
+This product includes software developed by
+The Apache Software Foundation (http://www.apache.org/).
+
+Apache Commons Collections
+Copyright 2001-2008 The Apache Software Foundation
+
+Apache Jakarta Commons Digester
+Copyright 2001-2006 The Apache Software Foundation
+
+Apache Commons BeanUtils
+Copyright 2000-2010 The Apache Software Foundation
+
+Apache Commons BeanUtils
+Copyright 2000-2008 The Apache Software Foundation
+
+Apache Commons Codec
+Copyright 2002-2011 The Apache Software Foundation
+
+
+src/test/org/apache/commons/codec/language/DoubleMetaphoneTest.java contains 
+test data from http://aspell.sourceforge.net/test/batch0.tab.
+
+Copyright (C) 2002 Kevin Atkinson (kev...@gnu.org). Verbatim copying
+and distribution of this entire article is permitted in any medium,
+provided this notice is preserved.
+
+
+Apache Commons IO
+Copyright 2002-2012 The Apache Software Foundation
+
+Apache Commons Lang
+Copyright 2001-2011 The Apache Software Foundation
+
+Apache Commons Logging
+Copyright 2003-2014 The Apache Software Foundation
+
+Apache Commons Lang
+Copyright 2001-2016 The Apache Software Foundation
+
+This product includes software from the Spring Framework,
+under the Apache License 2.0 (see: StringUtils.containsWhitespace())
+
+Apache Log4j SLF4J Binding
+Copyright 1999-2019 The Apache Software Foundation
+
+Apache Log4j API
+Copyright 1999-2019 The Apache Software Foundation
+
+Apache Log4j 1.x Compatibility API
+Copyright 1999-2019 The Apache Software Foundation
+
+=
+= NOTICE file corresponding to section 4d of the Apache License Version 2.0 =
+=
+This product includes software developed by
+Joda.org (https://www.joda.org/).
+
+# Jackson JSON processor
+
+Jackson is a high-performance, Free/Open Source JSON processing library.
+It was originally written by Tatu Saloranta (tatu.salora...@iki.fi), and has
+been in development since 2007.
+It is currently developed by a community of developers, as well as supported
+commercially by FasterXML.com.
+
+## Licensing
+
+Jackson core and extension components may be licensed under different licenses.
+To find the details that apply to this artifact see the accompanying LICENSE 
file.
+For more information, including possible other licensing options, contact
+FasterXML.com (http://fasterxml.com).
+
+## Credits
+
+A list of contributors may be found from CREDITS file, which is included
+in some artifacts (usually source distributions); but is always available
+from the source code management (SCM) system project uses.
+
+Apache Groovy
+Copyright 2003-2017 The Apache Software Foundation
+
+This product includes/uses ANTLR (http://www.antlr2.org/)
+developed by Terence Parr 1989-2006
+
+This product bundles icons from the famfamfam.com silk icons set
+http://www.famfamfam.com/lab/icons/silk/
+Licensed under the Creative Commons Attribution Licence v2.5
+http://creativecommons.org/licenses/by/2.5/
+
+Apache HttpClient Mime
+Copyright 1999-2017 The Apache Software Foundation
+
+Apache HttpClient
+Copyright 1999-2017 The Apache Software Foundation
+
+Apache HttpCore
+Copyright 

[incubator-pinot] branch release-0.4.0-update-binary created (now 1f8eb46)

2020-06-08 Thread haibow
This is an automated email from the ASF dual-hosted git repository.

haibow pushed a change to branch release-0.4.0-update-binary
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git.


  at 1f8eb46  Add license

This branch includes the following new commits:

 new 5518480  Update release note
 new 1f8eb46  Add license

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



-
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org



[incubator-pinot] branch pinot_query_literal_only updated (282f468 -> 1fabecc)

2020-06-08 Thread xiangfu
This is an automated email from the ASF dual-hosted git repository.

xiangfu pushed a change to branch pinot_query_literal_only
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git.


 discard 282f468  Address comments
 discard f0ae091  Support Selection Literal only queries
 add 04e12bd  Config for raw index writer version (#5503)
 add bea55a0  [TE] Add data quality/sla rule to the detection template 
(#5515)
 add 2e834cf  Support escaping single quote for SQL literal (#5501)
 add c139488  Support expression as the left-hand side for BETWEEN and IN 
clause (#5502)
 add e3392d7  Support Selection Literal only queries
 add 1fabecc  Address comments

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (282f468)
\
 N -- N -- N   refs/heads/pinot_query_literal_only (1fabecc)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

No new revisions were added by this update.

Summary of changes:
 .../pinot/common/utils/request/RequestUtils.java   |   7 +-
 .../parsers/pql2/ast/BetweenPredicateAstNode.java  |   8 +-
 .../pql/parsers/pql2/ast/InPredicateAstNode.java   |   2 +
 .../pinot/sql/parsers/CalciteSqlCompilerTest.java  |   2 +-
 .../writer/impl/v1/BaseChunkSingleValueWriter.java |   8 +-
 .../impl/v1/FixedByteChunkSingleValueWriter.java   |  10 +-
 .../impl/v1/VarByteChunkSingleValueWriter.java |   9 +-
 .../pinot/core/minion/RawIndexConverter.java   |   3 +-
 .../creator/impl/SegmentColumnarIndexCreator.java  |  43 ++--
 .../fwd/SingleValueFixedByteRawIndexCreator.java   |  20 +-
 .../fwd/SingleValueVarByteRawIndexCreator.java |  29 ++-
 .../defaultcolumn/BaseDefaultColumnHandler.java|   3 +-
 .../FixedByteChunkSingleValueReaderWriteTest.java  | 225 ++---
 .../VarByteChunkSingleValueReaderWriteTest.java|  49 +++--
 .../tests/OfflineClusterIntegrationTest.java   |  89 
 .../apache/pinot/spi/config/table/FieldConfig.java |  13 +-
 .../converter/DictionaryToRawIndexConverter.java   |   4 +-
 thirdeye/thirdeye-frontend/app/utils/yaml-tools.js |  38 ++--
 18 files changed, 359 insertions(+), 203 deletions(-)


-
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org



[incubator-pinot] branch pinot_query_literal_only updated (f0ae091 -> 282f468)

2020-06-08 Thread xiangfu
This is an automated email from the ASF dual-hosted git repository.

xiangfu pushed a change to branch pinot_query_literal_only
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git.


from f0ae091  Support Selection Literal only queries
 add 282f468  Address comments

No new revisions were added by this update.

Summary of changes:
 .../pinot/broker/requesthandler/BaseBrokerRequestHandler.java | 11 +--
 .../pinot/pql/parsers/PinotQuery2BrokerRequestConverter.java  |  2 +-
 2 files changed, 6 insertions(+), 7 deletions(-)


-
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org



[incubator-pinot] branch master updated: Support expression as the left-hand side for BETWEEN and IN clause (#5502)

2020-06-08 Thread jackie
This is an automated email from the ASF dual-hosted git repository.

jackie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git


The following commit(s) were added to refs/heads/master by this push:
 new c139488  Support expression as the left-hand side for BETWEEN and IN 
clause (#5502)
c139488 is described below

commit c139488a6c33e4328b13c24fbfd689848c816849
Author: Xiaotian (Jackie) Jiang <1751+jackie-ji...@users.noreply.github.com>
AuthorDate: Mon Jun 8 11:44:24 2020 -0700

Support expression as the left-hand side for BETWEEN and IN clause (#5502)

Add PQL compiler support for left-hand expression for BETWEEN and IN
---
 .../parsers/pql2/ast/BetweenPredicateAstNode.java  |  8 +--
 .../pql/parsers/pql2/ast/InPredicateAstNode.java   |  2 +
 .../tests/OfflineClusterIntegrationTest.java   | 63 +++---
 3 files changed, 36 insertions(+), 37 deletions(-)

diff --git 
a/pinot-common/src/main/java/org/apache/pinot/pql/parsers/pql2/ast/BetweenPredicateAstNode.java
 
b/pinot-common/src/main/java/org/apache/pinot/pql/parsers/pql2/ast/BetweenPredicateAstNode.java
index 4f11372..8d216be 100644
--- 
a/pinot-common/src/main/java/org/apache/pinot/pql/parsers/pql2/ast/BetweenPredicateAstNode.java
+++ 
b/pinot-common/src/main/java/org/apache/pinot/pql/parsers/pql2/ast/BetweenPredicateAstNode.java
@@ -22,6 +22,7 @@ import java.util.Collections;
 import org.apache.pinot.common.request.Expression;
 import org.apache.pinot.common.request.FilterOperator;
 import org.apache.pinot.common.request.Function;
+import org.apache.pinot.common.request.transform.TransformExpressionTree;
 import org.apache.pinot.common.utils.request.FilterQueryTree;
 import org.apache.pinot.common.utils.request.HavingQueryTree;
 import org.apache.pinot.common.utils.request.RequestUtils;
@@ -39,6 +40,7 @@ public class BetweenPredicateAstNode extends PredicateAstNode 
{
   _identifier = node.getName();
 } else if (childNode instanceof FunctionCallAstNode) {
   _function = (FunctionCallAstNode) childNode;
+  _identifier = TransformExpressionTree.getStandardExpression(childNode);
 } else {
   super.addChild(childNode);
 }
@@ -102,8 +104,7 @@ public class BetweenPredicateAstNode extends 
PredicateAstNode {
 
rangeFuncCall.addToOperands(RequestUtils.createLiteralExpression(right));
 return betweenExpr;
   } catch (ClassCastException e) {
-throw new Pql2CompilationException(
-"BETWEEN clause was expecting two literal AST nodes, got " + 
getChildren());
+throw new Pql2CompilationException("BETWEEN clause was expecting two 
literal AST nodes, got " + getChildren());
   }
 } else {
   throw new Pql2CompilationException("BETWEEN clause does not have two 
children nodes");
@@ -123,8 +124,7 @@ public class BetweenPredicateAstNode extends 
PredicateAstNode {
 Collections.singletonList("[" + left.getValueAsString() + "\t\t" + 
right.getValueAsString() + "]"),
 FilterOperator.RANGE, null);
   } catch (ClassCastException e) {
-throw new Pql2CompilationException(
-"BETWEEN clause was expecting two literal AST nodes, got " + 
getChildren());
+throw new Pql2CompilationException("BETWEEN clause was expecting two 
literal AST nodes, got " + getChildren());
   }
 } else {
   throw new Pql2CompilationException("BETWEEN clause does not have two 
children nodes");
diff --git 
a/pinot-common/src/main/java/org/apache/pinot/pql/parsers/pql2/ast/InPredicateAstNode.java
 
b/pinot-common/src/main/java/org/apache/pinot/pql/parsers/pql2/ast/InPredicateAstNode.java
index 82007c5..39a28c2 100644
--- 
a/pinot-common/src/main/java/org/apache/pinot/pql/parsers/pql2/ast/InPredicateAstNode.java
+++ 
b/pinot-common/src/main/java/org/apache/pinot/pql/parsers/pql2/ast/InPredicateAstNode.java
@@ -23,6 +23,7 @@ import java.util.List;
 import java.util.TreeSet;
 import org.apache.pinot.common.request.Expression;
 import org.apache.pinot.common.request.FilterOperator;
+import org.apache.pinot.common.request.transform.TransformExpressionTree;
 import org.apache.pinot.common.utils.request.FilterQueryTree;
 import org.apache.pinot.common.utils.request.HavingQueryTree;
 import org.apache.pinot.common.utils.request.RequestUtils;
@@ -68,6 +69,7 @@ public class InPredicateAstNode extends PredicateAstNode {
 } else if (childNode instanceof FunctionCallAstNode) {
   if (_function == null && _identifier == null) {
 _function = (FunctionCallAstNode) childNode;
+_identifier = TransformExpressionTree.getStandardExpression(childNode);
   } else if (_function != null) {
 throw new Pql2CompilationException("IN predicate has more than one 
function.");
   } else {
diff --git 
a/pinot-integration-tests/src/test/java/org/apache/pinot/integration/tests/OfflineClusterIntegrationTest.java
 

[incubator-pinot] branch master updated: Support escaping single quote for SQL literal (#5501)

2020-06-08 Thread jackie
This is an automated email from the ASF dual-hosted git repository.

jackie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git


The following commit(s) were added to refs/heads/master by this push:
 new 2e834cf  Support escaping single quote for SQL literal (#5501)
2e834cf is described below

commit 2e834cf0efc553f729e2f7aeec43725fb68da421
Author: Xiaotian (Jackie) Jiang <1751+jackie-ji...@users.noreply.github.com>
AuthorDate: Mon Jun 8 11:43:39 2020 -0700

Support escaping single quote for SQL literal (#5501)

Currently there is no way to escape single quote for SQL literal
Support escaping single quote by using the SQL convention of double single 
quote "''"
This is especially useful for DistinctCountThetaSketch because it stores 
expression as literal
E.g. DistinctCountThetaSketch(..., 'foo=''bar''', ...)
---
 .../java/org/apache/pinot/common/utils/request/RequestUtils.java   | 7 ---
 .../java/org/apache/pinot/sql/parsers/CalciteSqlCompilerTest.java  | 2 +-
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git 
a/pinot-common/src/main/java/org/apache/pinot/common/utils/request/RequestUtils.java
 
b/pinot-common/src/main/java/org/apache/pinot/common/utils/request/RequestUtils.java
index cc4b9c1..994b979 100644
--- 
a/pinot-common/src/main/java/org/apache/pinot/common/utils/request/RequestUtils.java
+++ 
b/pinot-common/src/main/java/org/apache/pinot/common/utils/request/RequestUtils.java
@@ -121,7 +121,7 @@ public class RequestUtils {
 literal.setDoubleValue(node.bigDecimalValue().doubleValue());
   }
 } else {
-  literal.setStringValue(node.toString().replaceAll("^\'|\'$", ""));
+  literal.setStringValue(node.toString().replaceAll("^'|'$", 
"").replace("''", "'"));
 }
 expression.setLiteral(literal);
 return expression;
@@ -176,10 +176,11 @@ public class RequestUtils {
 if (object instanceof String) {
   return RequestUtils.getLiteralExpression((String) object);
 }
-if(object instanceof SqlLiteral) {
+if (object instanceof SqlLiteral) {
   return RequestUtils.getLiteralExpression((SqlLiteral) object);
 }
-throw new SqlCompilationException(new 
IllegalArgumentException("Unsupported Literal value type - " + 
object.getClass()));
+throw new SqlCompilationException(
+new IllegalArgumentException("Unsupported Literal value type - " + 
object.getClass()));
   }
 
   public static Expression getFunctionExpression(String operator) {
diff --git 
a/pinot-common/src/test/java/org/apache/pinot/sql/parsers/CalciteSqlCompilerTest.java
 
b/pinot-common/src/test/java/org/apache/pinot/sql/parsers/CalciteSqlCompilerTest.java
index aec7917..f76eb94 100644
--- 
a/pinot-common/src/test/java/org/apache/pinot/sql/parsers/CalciteSqlCompilerTest.java
+++ 
b/pinot-common/src/test/java/org/apache/pinot/sql/parsers/CalciteSqlCompilerTest.java
@@ -55,7 +55,7 @@ public class CalciteSqlCompilerTest {
 CalciteSqlParser.compileToPinotQuery("select * from vegetables where 
origin = 'Martha''s Vineyard'");
 Assert.assertEquals(
 
pinotQuery.getFilterExpression().getFunctionCall().getOperands().get(1).getLiteral().getStringValue(),
-"Martha''s Vineyard");
+"Martha's Vineyard");
 
 pinotQuery = CalciteSqlParser.compileToPinotQuery("select * from 
vegetables where origin = 'Martha\"\"s Vineyard'");
 Assert.assertEquals(


-
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org



[incubator-pinot] branch master updated (04e12bd -> bea55a0)

2020-06-08 Thread akshayrai09
This is an automated email from the ASF dual-hosted git repository.

akshayrai09 pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git.


from 04e12bd  Config for raw index writer version (#5503)
 add bea55a0  [TE] Add data quality/sla rule to the detection template 
(#5515)

No new revisions were added by this update.

Summary of changes:
 thirdeye/thirdeye-frontend/app/utils/yaml-tools.js | 38 --
 1 file changed, 21 insertions(+), 17 deletions(-)


-
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org



[incubator-pinot] branch pushdown_topk_filter updated (5c80242 -> 4523ce3)

2020-06-08 Thread xhsun
This is an automated email from the ASF dual-hosted git repository.

xhsun pushed a change to branch pushdown_topk_filter
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git.


from 5c80242  add top n support for scv and sql data source
 add 4523ce3  [TE] Fix failed tests

No new revisions were added by this update.

Summary of changes:
 .../pinot/thirdeye/datasource/sql/TestSqlUtils.java   | 19 +++
 1 file changed, 11 insertions(+), 8 deletions(-)


-
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org



[incubator-pinot] branch master updated (d72493e -> 04e12bd)

2020-06-08 Thread siddteotia
This is an automated email from the ASF dual-hosted git repository.

siddteotia pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git.


from d72493e  Update SegmentDumpTool to use PinotSegmentRecordReader. 
(#5505)
 add 04e12bd  Config for raw index writer version (#5503)

No new revisions were added by this update.

Summary of changes:
 .../writer/impl/v1/BaseChunkSingleValueWriter.java |   8 +-
 .../impl/v1/FixedByteChunkSingleValueWriter.java   |  10 +-
 .../impl/v1/VarByteChunkSingleValueWriter.java |   9 +-
 .../pinot/core/minion/RawIndexConverter.java   |   3 +-
 .../creator/impl/SegmentColumnarIndexCreator.java  |  43 ++--
 .../fwd/SingleValueFixedByteRawIndexCreator.java   |  20 +-
 .../fwd/SingleValueVarByteRawIndexCreator.java |  29 ++-
 .../defaultcolumn/BaseDefaultColumnHandler.java|   3 +-
 .../FixedByteChunkSingleValueReaderWriteTest.java  | 225 ++---
 .../VarByteChunkSingleValueReaderWriteTest.java|  49 +++--
 .../apache/pinot/spi/config/table/FieldConfig.java |  13 +-
 .../converter/DictionaryToRawIndexConverter.java   |   4 +-
 12 files changed, 284 insertions(+), 132 deletions(-)


-
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org