Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 2 additions & 0 deletions src/main/cpp/main/velox4j/init/Init.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include <velox/exec/PartitionFunction.h>
#include <velox/experimental/stateful/StatefulPlanNode.h>
#include <velox/functions/prestosql/aggregates/RegisterAggregateFunctions.h>
#include <velox/functions/prestosql/registration/RegistrationFunctions.h>
#include <velox/functions/prestosql/window/WindowFunctionsRegistration.h>
#include <velox/functions/sparksql/aggregates/Register.h>
#include <velox/functions/sparksql/registration/Register.h>
Expand Down Expand Up @@ -68,6 +69,7 @@ void initForSpark() {
parquet::registerParquetReaderFactory();
parquet::registerParquetWriterFactory();
functions::sparksql::registerFunctions();
functions::prestosql::registerAllScalarFunctions();
aggregate::prestosql::registerAllAggregateFunctions(
"",
true /*registerCompanionFunctions*/,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.github.zhztheplayer.velox4j.connector;

import com.fasterxml.jackson.annotation.JsonCreator;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.github.zhztheplayer.velox4j.connector;

import com.fasterxml.jackson.annotation.JsonCreator;
Expand All @@ -10,8 +26,7 @@ public class FuzzerConnectorSplit extends ConnectorSplit {

@JsonCreator
public FuzzerConnectorSplit(
@JsonProperty("connectorId") String connectorId,
@JsonProperty("numRows") int numRows) {
@JsonProperty("connectorId") String connectorId, @JsonProperty("numRows") int numRows) {
super(connectorId, 0, true);
this.numRows = numRows;
}
Expand All @@ -30,5 +45,4 @@ public boolean isCacheable() {
public int getNumRows() {
return numRows;
}

}
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.github.zhztheplayer.velox4j.connector;

import com.fasterxml.jackson.annotation.JsonCreator;
Expand All @@ -9,8 +25,7 @@ public class FuzzerTableHandle extends ConnectorTableHandle {

@JsonCreator
public FuzzerTableHandle(
@JsonProperty("connectorId") String connectorId,
@JsonProperty("fuzzerSeed") int fuzzerSeed) {
@JsonProperty("connectorId") String connectorId, @JsonProperty("fuzzerSeed") int fuzzerSeed) {
super(connectorId);
this.fuzzerSeed = fuzzerSeed;
}
Expand All @@ -19,5 +34,4 @@ public FuzzerTableHandle(
public int getSeed() {
return fuzzerSeed;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
*/
package io.github.zhztheplayer.velox4j.connector;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;

public class InsertTableHandle implements Serializable {
private final String connectorId;
private final ConnectorInsertTableHandle connectorInsertTableHandle;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.github.zhztheplayer.velox4j.connector;

import com.fasterxml.jackson.annotation.JsonCreator;
Expand All @@ -10,8 +26,7 @@ public class NexmarkConnectorSplit extends ConnectorSplit {

@JsonCreator
public NexmarkConnectorSplit(
@JsonProperty("connectorId") String connectorId,
@JsonProperty("numRows") int numRows) {
@JsonProperty("connectorId") String connectorId, @JsonProperty("numRows") int numRows) {
super(connectorId, 0, true);
this.numRows = numRows;
}
Expand All @@ -20,5 +35,4 @@ public NexmarkConnectorSplit(
public int getNumRows() {
return numRows;
}

}
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.github.zhztheplayer.velox4j.connector;

import com.fasterxml.jackson.annotation.JsonCreator;
Expand All @@ -6,9 +22,7 @@
public class NexmarkTableHandle extends ConnectorTableHandle {

@JsonCreator
public NexmarkTableHandle(
@JsonProperty("connectorId") String connectorId) {
public NexmarkTableHandle(@JsonProperty("connectorId") String connectorId) {
super(connectorId);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@

import java.util.List;

import com.google.common.base.Preconditions;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.base.Preconditions;

import io.github.zhztheplayer.velox4j.expression.TypedExpr;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonInclude;

import io.github.zhztheplayer.velox4j.exception.VeloxException;
import io.github.zhztheplayer.velox4j.serializable.ISerializable;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@

import java.util.List;

import com.google.common.base.Preconditions;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.base.Preconditions;

import io.github.zhztheplayer.velox4j.expression.TypedExpr;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@

import java.util.List;

import com.google.common.base.Preconditions;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.base.Preconditions;

import io.github.zhztheplayer.velox4j.connector.CommitStrategy;
import io.github.zhztheplayer.velox4j.connector.ConnectorInsertTableHandle;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,27 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.github.zhztheplayer.velox4j.plan;

import com.google.common.base.Preconditions;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;
import com.google.common.base.Preconditions;

public class WatermarkAssignerNode extends PlanNode {
private List<PlanNode> sources;
Expand All @@ -15,11 +31,11 @@ public class WatermarkAssignerNode extends PlanNode {

@JsonCreator
public WatermarkAssignerNode(
@JsonProperty("id") String id,
@JsonProperty("sources") List<PlanNode> sources,
@JsonProperty("project") ProjectNode project,
@JsonProperty("idleTimeout") long idleTimeout,
@JsonProperty("rowtimeFieldIndex") int rowtimeFieldIndex) {
@JsonProperty("id") String id,
@JsonProperty("sources") List<PlanNode> sources,
@JsonProperty("project") ProjectNode project,
@JsonProperty("idleTimeout") long idleTimeout,
@JsonProperty("rowtimeFieldIndex") int rowtimeFieldIndex) {
super(id);
this.sources = sources;
this.project = project;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,4 @@

import java.io.Serializable;

public interface NativeBean extends Serializable {
}
public interface NativeBean extends Serializable {}
Loading