Skip to content

Commit

Permalink
merged with main
Browse files Browse the repository at this point in the history
  • Loading branch information
lbooker42 committed Apr 10, 2023
2 parents 2312f56 + 16e9bda commit 49eaed4
Show file tree
Hide file tree
Showing 401 changed files with 41,670 additions and 14,082 deletions.
2 changes: 1 addition & 1 deletion Base/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ artifacts {
spotless {
java {
targetExclude(
'src/test/java/io/deephaven/base/ringbuffer/AggregatingDoubleRingBufferTest.java'
'**/ringbuffer/Aggregating*RingBuffer*.java'
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -696,8 +696,7 @@ void fixupTree(final long r1Head, final long r1Tail, final long r2Head, final lo
* <p>
* The provided ranges ore closed-interval. The head and tail are both included in the range.
*/
private void evaluateThreeRanges(int r1h, int r1t, int r2h, int r2t, int r3h, int r3t,
DoubleFunction evalFunction) {
private void evaluateThreeRanges(int r1h, int r1t, int r2h, int r2t, int r3h, int r3t, DoubleFunction evalFunction) {
while (true) {
if (r1t >= r2h) {
// r1 and r2 overlap. Collapse them together and call the two range version.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -696,8 +696,7 @@ void fixupTree(final long r1Head, final long r1Tail, final long r2Head, final lo
* <p>
* The provided ranges ore closed-interval. The head and tail are both included in the range.
*/
private void evaluateThreeRanges(int r1h, int r1t, int r2h, int r2t, int r3h, int r3t,
ObjectFunction<T> evalFunction) {
private void evaluateThreeRanges(int r1h, int r1t, int r2h, int r2t, int r3h, int r3t, ObjectFunction<T> evalFunction) {
while (true) {
if (r1t >= r2h) {
// r1 and r2 overlap. Collapse them together and call the two range version.
Expand Down
4 changes: 3 additions & 1 deletion ParquetHadoop/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ tasks.withType(License) {
}

dependencies {
api('org.apache.parquet:parquet-hadoop:1.12.3')
// TODO(deephaven-core#3148): LZ4_RAW parquet support
api('org.apache.parquet:parquet-hadoop:1.13.0')

// TODO(deephaven-core#806): Remove dependency on hadoop-common
api('org.apache.hadoop:hadoop-common:3.3.3') {
// do not take any dependencies of this project,
// we just want a few classes (Configuration, Path) for
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
package io.deephaven.parquet.base.tempfix;

/*
TODO(deephaven-core#901): Remove the hacked ParquetMetadataConverter.java and the need for the ParquetHadoop module.
NOTE this only exists for this line, inside addRowGroup
Without it the page offset is not being saved properly
if (columnMetaData.getDictionaryPageOffset() >= 0) {
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion authorization-codegen/protoc-gen-contextual-auth-wiring
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# protoc-gen-contextual-auth-wiring
java -cp authorization-codegen/build/libs/deephaven-authorization-codegen-0.23.0-all.jar io.deephaven.auth.codegen.GenerateContextualAuthWiring
java -cp authorization-codegen/build/libs/deephaven-authorization-codegen-0.24.0-all.jar io.deephaven.auth.codegen.GenerateContextualAuthWiring
2 changes: 1 addition & 1 deletion authorization-codegen/protoc-gen-service-auth-wiring
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# protoc-gen-service-auth-wiring
java -cp authorization-codegen/build/libs/deephaven-authorization-codegen-0.23.0-all.jar io.deephaven.auth.codegen.GenerateServiceAuthWiring
java -cp authorization-codegen/build/libs/deephaven-authorization-codegen-0.24.0-all.jar io.deephaven.auth.codegen.GenerateServiceAuthWiring
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import io.deephaven.auth.ServiceAuthWiring;
import io.deephaven.proto.backplane.script.grpc.AutoCompleteRequest;
import io.deephaven.proto.backplane.script.grpc.BindTableToVariableRequest;
import io.deephaven.proto.backplane.script.grpc.CancelAutoCompleteRequest;
import io.deephaven.proto.backplane.script.grpc.CancelCommandRequest;
import io.deephaven.proto.backplane.script.grpc.ConsoleServiceGrpc;
import io.deephaven.proto.backplane.script.grpc.ExecuteCommandRequest;
Expand Down Expand Up @@ -52,6 +53,8 @@ default ServerServiceDefinition intercept(ConsoleServiceGrpc.ConsoleServiceImplB
serviceBuilder.addMethod(ServiceAuthWiring.intercept(
service, "AutoCompleteStream", this::onCallStartedAutoCompleteStream,
this::onMessageReceivedAutoCompleteStream));
serviceBuilder.addMethod(ServiceAuthWiring.intercept(
service, "CancelAutoComplete", null, this::onMessageReceivedCancelAutoComplete));
serviceBuilder.addMethod(ServiceAuthWiring.intercept(
service, "OpenAutoCompleteStream", null, this::onMessageReceivedOpenAutoCompleteStream));
serviceBuilder.addMethod(ServiceAuthWiring.intercept(
Expand Down Expand Up @@ -141,6 +144,16 @@ void onMessageReceivedBindTableToVariable(AuthContext authContext,
*/
void onMessageReceivedAutoCompleteStream(AuthContext authContext, AutoCompleteRequest request);

/**
* Authorize a request to CancelAutoComplete.
*
* @param authContext the authentication context of the request
* @param request the request to authorize
* @throws io.grpc.StatusRuntimeException if the user is not authorized to invoke CancelAutoComplete
*/
void onMessageReceivedCancelAutoComplete(AuthContext authContext,
CancelAutoCompleteRequest request);

/**
* Authorize a request to OpenAutoCompleteStream.
*
Expand Down Expand Up @@ -187,6 +200,9 @@ public void onCallStartedAutoCompleteStream(AuthContext authContext) {}
public void onMessageReceivedAutoCompleteStream(AuthContext authContext,
AutoCompleteRequest request) {}

public void onMessageReceivedCancelAutoComplete(AuthContext authContext,
CancelAutoCompleteRequest request) {}

public void onMessageReceivedOpenAutoCompleteStream(AuthContext authContext,
AutoCompleteRequest request) {}

Expand Down Expand Up @@ -238,6 +254,11 @@ public void onMessageReceivedAutoCompleteStream(AuthContext authContext,
ServiceAuthWiring.operationNotAllowed();
}

public void onMessageReceivedCancelAutoComplete(AuthContext authContext,
CancelAutoCompleteRequest request) {
ServiceAuthWiring.operationNotAllowed();
}

public void onMessageReceivedOpenAutoCompleteStream(AuthContext authContext,
AutoCompleteRequest request) {
ServiceAuthWiring.operationNotAllowed();
Expand Down Expand Up @@ -313,6 +334,13 @@ public void onMessageReceivedAutoCompleteStream(AuthContext authContext,
}
}

public void onMessageReceivedCancelAutoComplete(AuthContext authContext,
CancelAutoCompleteRequest request) {
if (delegate != null) {
delegate.onMessageReceivedCancelAutoComplete(authContext, request);
}
}

public void onMessageReceivedOpenAutoCompleteStream(AuthContext authContext,
AutoCompleteRequest request) {
if (delegate != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import io.deephaven.proto.backplane.grpc.HeadOrTailRequest;
import io.deephaven.proto.backplane.grpc.LeftJoinTablesRequest;
import io.deephaven.proto.backplane.grpc.MergeTablesRequest;
import io.deephaven.proto.backplane.grpc.MetaTableRequest;
import io.deephaven.proto.backplane.grpc.NaturalJoinTablesRequest;
import io.deephaven.proto.backplane.grpc.RunChartDownsampleRequest;
import io.deephaven.proto.backplane.grpc.SeekRowRequest;
Expand Down Expand Up @@ -466,6 +467,17 @@ void checkPermissionExportedTableUpdates(AuthContext authContext,
void checkPermissionSeekRow(AuthContext authContext, SeekRowRequest request,
List<Table> sourceTables);

/**
* Authorize a request to MetaTable.
*
* @param authContext the authentication context of the request
* @param request the request to authorize
* @param sourceTables the operation's source tables
* @throws io.grpc.StatusRuntimeException if the user is not authorized to invoke MetaTable
*/
void checkPermissionMetaTable(AuthContext authContext, MetaTableRequest request,
List<Table> sourceTables);

class AllowAll implements TableServiceContextualAuthWiring {
public void checkPermissionGetExportedTableCreationResponse(AuthContext authContext,
Ticket request, List<Table> sourceTables) {}
Expand Down Expand Up @@ -580,6 +592,9 @@ public void checkPermissionExportedTableUpdates(AuthContext authContext,

public void checkPermissionSeekRow(AuthContext authContext, SeekRowRequest request,
List<Table> sourceTables) {}

public void checkPermissionMetaTable(AuthContext authContext, MetaTableRequest request,
List<Table> sourceTables) {}
}

class DenyAll implements TableServiceContextualAuthWiring {
Expand Down Expand Up @@ -772,6 +787,11 @@ public void checkPermissionSeekRow(AuthContext authContext, SeekRowRequest reque
List<Table> sourceTables) {
ServiceAuthWiring.operationNotAllowed();
}

public void checkPermissionMetaTable(AuthContext authContext, MetaTableRequest request,
List<Table> sourceTables) {
ServiceAuthWiring.operationNotAllowed();
}
}

class TestUseOnly implements TableServiceContextualAuthWiring {
Expand Down Expand Up @@ -1042,5 +1062,12 @@ public void checkPermissionSeekRow(AuthContext authContext, SeekRowRequest reque
delegate.checkPermissionSeekRow(authContext, request, sourceTables);
}
}

public void checkPermissionMetaTable(AuthContext authContext, MetaTableRequest request,
List<Table> sourceTables) {
if (delegate != null) {
delegate.checkPermissionMetaTable(authContext, request, sourceTables);
}
}
}
}
Loading

0 comments on commit 49eaed4

Please sign in to comment.