Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reverse merge #9

Merged
merged 62 commits into from
May 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
7c0a954
Merge pull request #1 from apache/master
deepthi912 Mar 26, 2024
361b729
Merge pull request #3 from apache/master
deepthi912 Apr 6, 2024
b764dfb
Merge pull request #4 from apache/master
deepthi912 Apr 12, 2024
dbbf44c
Add splitPartWithLimit and splitPartFromEnd UDFs (#12437)
deemoliu Apr 18, 2024
ea60408
hash4j version upgrade to 0.17.0 (#12968)
abhioncbr Apr 19, 2024
5b90c65
Bump moment in /pinot-controller/src/main/resources (#9030)
dependabot[bot] Apr 19, 2024
5e8428c
Bump terser from 4.8.0 to 4.8.1 in /pinot-controller/src/main/resourc…
dependabot[bot] Apr 19, 2024
31d2ee8
Bump json5 from 1.0.1 to 1.0.2 in /pinot-controller/src/main/resource…
dependabot[bot] Apr 19, 2024
da68236
Bump net.openhft:posix from 2.23.2 to 2.25ea0 (#12828)
dependabot[bot] Apr 19, 2024
76eebc2
Bump net.openhft:chronicle-core from 2.25ea13 to 2.25ea14 (#12971)
dependabot[bot] Apr 19, 2024
fe63a02
Bump org.apache.maven.plugins:maven-gpg-plugin from 3.2.3 to 3.2.4 (#…
dependabot[bot] Apr 19, 2024
bebb491
Bump aws.sdk.version from 2.25.33 to 2.25.34 (#12975)
dependabot[bot] Apr 19, 2024
d840413
reduce logging for SpecialValueTransformer (#12970)
aishikbh Apr 19, 2024
e1b0e53
Refactor PinotTaskManager class (#12964)
tibrewalpratik17 Apr 19, 2024
f83e466
Bump org.roaringbitmap:RoaringBitmap from 1.0.5 to 1.0.6 (#12985)
dependabot[bot] Apr 22, 2024
7b68aa3
Bump aws.sdk.version from 2.25.34 to 2.25.35 (#12984)
dependabot[bot] Apr 22, 2024
c9d513a
Bump org.apache.maven.plugins:maven-jar-plugin from 3.4.0 to 3.4.1 (#…
dependabot[bot] Apr 22, 2024
a852c8a
Update ORC and Hive dependency versions in the license binary file (#…
yashmayya Apr 22, 2024
a5c728f
Add back profile for shade (#12979)
xiangfu0 Apr 22, 2024
8e10320
handle absent segments so that catchup checker doesn't get stuck on t…
klsince Apr 22, 2024
dd4f0ac
Bump org.jline:jline from 3.24.1 to 3.26.0 (#12991)
dependabot[bot] Apr 23, 2024
40cf5a7
Bump aws.sdk.version from 2.25.35 to 2.25.36 (#12990)
dependabot[bot] Apr 23, 2024
0caeccf
Bump org.webjars:swagger-ui from 5.15.0 to 5.17.0 (#12989)
dependabot[bot] Apr 23, 2024
36c4b9a
Add Prefix, Suffix and Ngram UDFs (#12392)
deemoliu Apr 23, 2024
bc9e8ee
Upgrade Pulsar to 3.2.2 (#12967)
Jackie-Jiang Apr 24, 2024
33b8c88
Bump org.apache.maven.plugins:maven-shade-plugin from 3.5.2 to 3.5.3 …
dependabot[bot] Apr 24, 2024
cb16cd7
Bump com.github.luben:zstd-jni from 1.5.6-2 to 1.5.6-3 (#12999)
dependabot[bot] Apr 24, 2024
d602ffd
Bump aws.sdk.version from 2.25.36 to 2.25.37 (#12994)
dependabot[bot] Apr 24, 2024
5adb02f
Bump com.azure:azure-storage-file-datalake from 12.18.3 to 12.18.4 (#…
dependabot[bot] Apr 24, 2024
73f1620
Bump org.jline:jline from 3.26.0 to 3.26.1 (#12997)
dependabot[bot] Apr 24, 2024
2ca6666
Pull pulsar version definitaion into root POM (#13002)
Jackie-Jiang Apr 24, 2024
099a86c
Add schema as input to the decoder. (#12981)
rseetham Apr 24, 2024
99a4180
avoid useless intermediate byte array allocation for VarChunkV4Reader…
wirybeaver Apr 25, 2024
49da798
Upgrade scala maven plugin to 4.9.0 (#13007)
abhioncbr Apr 25, 2024
3f0b748
Bump aws.sdk.version from 2.25.37 to 2.25.38 (#13006)
dependabot[bot] Apr 25, 2024
84a4c70
Re-enable the Spotless plugin for Java 21 (#12992)
yashmayya Apr 25, 2024
fc98ce1
Use ArrayList instead of LinkedList in SortOperator (#12783)
gortiz Apr 25, 2024
97a2e6d
fix TextMatchFilterOperator boolean grouping (#13009)
itschrispeck Apr 25, 2024
2fb30c0
Add some multi-stage metrics (#12982)
gortiz Apr 25, 2024
571214d
Metric for count of tables configured with various tier backends (#12…
shounakmk219 Apr 26, 2024
e9cba49
Bump aws.sdk.version from 2.25.38 to 2.25.39 (#13012)
dependabot[bot] Apr 26, 2024
cb68783
Bump circe.version from 0.14.6 to 0.14.7 (#13013)
dependabot[bot] Apr 26, 2024
5fc89ce
Support NOT in StarTree Index (#12988)
Jackie-Jiang Apr 26, 2024
0be51ca
Allow apply both environment variables and system properties to user …
xiangfu0 Apr 27, 2024
fc967d0
Bump org.testng:testng from 7.10.1 to 7.10.2 (#13021)
dependabot[bot] Apr 29, 2024
2a7f320
Bump aws.sdk.version from 2.25.39 to 2.25.40 (#13022)
dependabot[bot] Apr 29, 2024
e2cadfa
Bump com.google.errorprone:error_prone_annotations from 2.26.1 to 2.2…
dependabot[bot] Apr 29, 2024
bbf63c7
Bump org.apache.datasketches:datasketches-java from 5.0.2 to 6.0.0 (#…
dependabot[bot] Apr 29, 2024
bdfb34a
Bump commons-codec:commons-codec from 1.16.1 to 1.17.0 (#13025)
dependabot[bot] Apr 29, 2024
14651a2
Bump com.puppycrawl.tools:checkstyle from 10.15.0 to 10.16.0 (#13027)
dependabot[bot] Apr 29, 2024
7b06b9f
Issue #12367 (#12922)
aditya0811 Apr 29, 2024
475708f
Use try-with-resources to close file walk stream in LocalPinotFS (#13…
yashmayya Apr 30, 2024
7413e99
Upgrade s3mock to 2.17.0 (#13028)
Jackie-Jiang Apr 30, 2024
ea0c71b
Bump org.scala-lang:scala-library from 2.11.11 to 2.11.12 and from 2.…
dependabot[bot] Apr 30, 2024
f153011
Upgrade jna to version 5.14.0 for Mac M1/M2 local execution support (…
abhioncbr Apr 30, 2024
087fca3
Ensure all the lists used in PinotQuery are ArrayList (#13017)
Jackie-Jiang Apr 30, 2024
bf28a83
Use more efficient variants of URLEncoder::encode and URLDecoder::dec…
yashmayya May 1, 2024
ad70686
Enhancement: Sketch value aggregator performance (#13020)
davecromberge May 1, 2024
0f28a5c
fix merging null multi value in partial upsert (#13031)
rohityadav1993 May 1, 2024
c8b223f
Upgrade lucene to 9.10.0 and compatibility changes to code. (#12866)
abhioncbr May 1, 2024
5d1dc73
log the log rate limiter rate for dropped broker logs (#13041)
jadami10 May 1, 2024
5406079
Merge pull request #8 from apache/master
deepthi912 May 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions LICENSE-binary
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,8 @@ jakarta.validation:jakarta.validation-api:2.0.2
javax.inject:javax.inject:1
javax.validation:validation-api:2.0.1.Final
joda-time:joda-time:2.12.5
net.java.dev.jna:jna-platform:5.6.0
net.java.dev.jna:jna:5.5.0
net.java.dev.jna:jna-platform:5.14.0
net.java.dev.jna:jna:5.14.0
net.minidev:accessors-smart:2.5.0
net.minidev:json-smart:2.5.0
net.openhft:chronicle-analytics:2.24ea0
Expand Down Expand Up @@ -420,7 +420,7 @@ org.apache.helix:helix-core:1.3.1
org.apache.helix:metadata-store-directory-common:1.3.1
org.apache.helix:metrics-common:1.3.1
org.apache.helix:zookeeper-api:1.3.1
org.apache.hive:hive-storage-api:2.7.1
org.apache.hive:hive-storage-api:2.8.1
org.apache.httpcomponents:httpclient:4.5.14
org.apache.httpcomponents:httpcore:4.4.13
org.apache.httpcomponents:httpmime:4.5.13
Expand All @@ -438,8 +438,8 @@ org.apache.lucene:lucene-core:9.8.0
org.apache.lucene:lucene-queries:9.8.0
org.apache.lucene:lucene-queryparser:9.8.0
org.apache.lucene:lucene-sandbox:9.8.0
org.apache.orc:orc-core:1.5.9
org.apache.orc:orc-shims:1.5.9
org.apache.orc:orc-core:1.9.3
org.apache.orc:orc-shims:1.9.3
org.apache.parquet:parquet-avro:1.13.1
org.apache.parquet:parquet-column:1.13.1
org.apache.parquet:parquet-common:1.13.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ rules:
- pattern: "\"org\\.apache\\.pinot\\.common\\.metrics\"<type=\"ControllerMetrics\", name=\"pinot\\.controller\\.offlineTableCount\"><>(\\w+)"
name: "pinot_controller_offlineTableCount_$1"
cache: true
- pattern: "\"org\\.apache\\.pinot\\.common\\.metrics\"<type=\"ControllerMetrics\", name=\"pinot\\.controller\\.tierBackendTableCount\\.(\\w+)\"><>(\\w+)"
name: "pinot_controller_tierBackendTableCount_$1_$2"
cache: true
- pattern: "\"org\\.apache\\.pinot\\.common\\.metrics\"<type=\"ValidationMetrics\", name=\"pinot\\.controller\\.(([^.]+)\\.)?([^.]*)\\.(\\w+)\"><>(\\w+)"
name: "pinot_controller_validateion_$4_$5"
cache: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public void log(QueryLogParams params) {
long numDroppedLogsSinceLastLog = _numDroppedLogs.getAndSet(0);
if (numDroppedLogsSinceLastLog > 0) {
_logger.warn("{} logs were dropped. (log max rate per second: {})", numDroppedLogsSinceLastLog,
_droppedLogRateLimiter.getRate());
_logRateLimiter.getRate());
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import com.google.common.collect.ImmutableMap;
import java.net.URI;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
Expand Down Expand Up @@ -1361,17 +1360,15 @@ private static void handleApproximateFunctionOverride(Expression expression) {
try {
int percentile = Integer.parseInt(remainingFunctionName);
function.setOperator("percentilesmarttdigest");
function.setOperands(
Arrays.asList(function.getOperands().get(0), RequestUtils.getLiteralExpression(percentile)));
function.addToOperands(RequestUtils.getLiteralExpression(percentile));
} catch (Exception e) {
throw new BadQueryRequestException("Illegal function name: " + functionName);
}
} else if (remainingFunctionName.matches("\\d+mv")) {
try {
int percentile = Integer.parseInt(remainingFunctionName.substring(0, remainingFunctionName.length() - 2));
function.setOperator("percentilesmarttdigest");
function.setOperands(
Arrays.asList(function.getOperands().get(0), RequestUtils.getLiteralExpression(percentile)));
function.addToOperands(RequestUtils.getLiteralExpression(percentile));
} catch (Exception e) {
throw new BadQueryRequestException("Illegal function name: " + functionName);
}
Expand Down Expand Up @@ -1849,18 +1846,17 @@ static void validateRequest(PinotQuery pinotQuery, int queryResponseLimit) {
*/
private static void attachTimeBoundary(PinotQuery pinotQuery, TimeBoundaryInfo timeBoundaryInfo,
boolean isOfflineRequest) {
String functionName = isOfflineRequest ? FilterKind.LESS_THAN_OR_EQUAL.name() : FilterKind.GREATER_THAN.name();
String timeColumn = timeBoundaryInfo.getTimeColumn();
String timeValue = timeBoundaryInfo.getTimeValue();
Expression timeFilterExpression = RequestUtils.getFunctionExpression(
isOfflineRequest ? FilterKind.LESS_THAN_OR_EQUAL.name() : FilterKind.GREATER_THAN.name());
timeFilterExpression.getFunctionCall().setOperands(
Arrays.asList(RequestUtils.getIdentifierExpression(timeColumn), RequestUtils.getLiteralExpression(timeValue)));
Expression timeFilterExpression =
RequestUtils.getFunctionExpression(functionName, RequestUtils.getIdentifierExpression(timeColumn),
RequestUtils.getLiteralExpression(timeValue));

Expression filterExpression = pinotQuery.getFilterExpression();
if (filterExpression != null) {
Expression andFilterExpression = RequestUtils.getFunctionExpression(FilterKind.AND.name());
andFilterExpression.getFunctionCall().setOperands(Arrays.asList(filterExpression, timeFilterExpression));
pinotQuery.setFilterExpression(andFilterExpression);
pinotQuery.setFilterExpression(
RequestUtils.getFunctionExpression(FilterKind.AND.name(), filterExpression, timeFilterExpression));
} else {
pinotQuery.setFilterExpression(timeFilterExpression);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,12 @@ protected BrokerResponse handleRequest(long requestId, String query, @Nullable S

DispatchableSubPlan dispatchableSubPlan = queryPlanResult.getQueryPlan();
Set<String> tableNames = queryPlanResult.getTableNames();

_brokerMetrics.addMeteredGlobalValue(BrokerMeter.MULTI_STAGE_QUERIES_GLOBAL, 1);
for (String tableName : tableNames) {
_brokerMetrics.addMeteredTableValue(tableName, BrokerMeter.MULTI_STAGE_QUERIES, 1);
}

requestContext.setTableNames(List.copyOf(tableNames));

// Compilation Time. This includes the time taken for parsing, compiling, create stage plans and assigning workers.
Expand Down
15 changes: 14 additions & 1 deletion pinot-clients/pinot-jdbc-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
<url>https://pinot.apache.org/</url>
<properties>
<pinot.root>${basedir}/../..</pinot.root>
<shade.phase.prop>package</shade.phase.prop>
</properties>
<build>
<resources>
Expand Down Expand Up @@ -82,4 +81,18 @@
<artifactId>jsr305</artifactId>
</dependency>
</dependencies>
<profiles>
<profile>
<id>build-shaded-jar</id>
<activation>
<property>
<name>skipShade</name>
<value>!true</value>
</property>
</activation>
<properties>
<shade.phase.prop>package</shade.phase.prop>
</properties>
</profile>
</profiles>
</project>
49 changes: 23 additions & 26 deletions pinot-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
<url>https://pinot.apache.org/</url>
<properties>
<pinot.root>${basedir}/..</pinot.root>
<shade.phase.prop>package</shade.phase.prop>
</properties>

<build>
Expand Down Expand Up @@ -63,6 +62,19 @@
<artifactId>protobuf-maven-plugin</artifactId>
</plugin>

<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<configuration>
<java>
<excludes>
<exclude>src/main/java/org/apache/pinot/common/request/*.java</exclude>
<exclude>src/main/java/org/apache/pinot/common/response/ProcessingException.java</exclude>
</excludes>
</java>
</configuration>
</plugin>

<!-- Following plugins and their configurations are used to generate the custom Calcite's SQL parser -->
<!-- Copy the templates present in the codegen directory to ${project.build.directory}/codegen -->
<plugin>
Expand Down Expand Up @@ -130,31 +142,6 @@
</executions>
</plugin>
</plugins>

<pluginManagement>
<plugins>
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<configuration>
<java>
<includes>
<include>src/main/java/**/*.java</include>
<include>src/test/java/**/*.java</include>
</includes>
<excludes>
<exclude>src/main/java/org/apache/pinot/common/request/*.java</exclude>
<exclude>src/main/java/org/apache/pinot/common/response/ProcessingException.java</exclude>
</excludes>
<importOrder>
<order>,\#</order>
</importOrder>
<removeUnusedImports/>
</java>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<dependencies>
<dependency>
Expand Down Expand Up @@ -414,5 +401,15 @@
</plugins>
</build>
</profile>

<profile>
<id>build-shaded-jar</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<shade.phase.prop>package</shade.phase.prop>
</properties>
</profile>
</profiles>
</project>
Loading
Loading