forked from apache/arrow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARROW-17980: [C++] As-of-Join Substrait extension (apache#17)
* ARROW-17980: [C++] As-of-Join Substrait extension * add missing file * add missing proto * CI fixes * distinct keys per input table * CI fixes * resolve conflict * fix typo * ARROW-17980: Change extensions package from arrow::substrait to arrow::substrait_ext * ARROW-17980: Remove more instances of ::substrait Co-authored-by: Yaron Gvili <rtpsw@hotmail.com>
- Loading branch information
1 parent
73efef8
commit 25d83a3
Showing
15 changed files
with
643 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// 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. | ||
syntax = "proto3"; | ||
|
||
package arrow.substrait_ext; | ||
|
||
import "substrait/algebra.proto"; | ||
|
||
option csharp_namespace = "Arrow.Substrait"; | ||
option go_package = "github.com/apache/arrow/substrait"; | ||
option java_multiple_files = true; | ||
option java_package = "io.arrow.substrait"; | ||
|
||
message AsOfJoinRel { | ||
repeated AsOfJoinKeys input_keys = 1; | ||
int64 tolerance = 2; | ||
|
||
message AsOfJoinKeys { | ||
.substrait.Expression on = 1; | ||
repeated .substrait.Expression by = 2; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// 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. | ||
|
||
#include <vector> | ||
|
||
#include "arrow/compute/exec.h" | ||
#include "arrow/compute/exec/options.h" | ||
#include "arrow/type.h" | ||
#include "arrow/util/visibility.h" | ||
|
||
namespace arrow { | ||
namespace compute { | ||
namespace asofjoin { | ||
|
||
using AsofJoinKeys = AsofJoinNodeOptions::Keys; | ||
|
||
ARROW_EXPORT Result<std::shared_ptr<Schema>> MakeOutputSchema( | ||
const std::vector<std::shared_ptr<Schema>>& input_schema, | ||
const std::vector<AsofJoinKeys>& input_keys); | ||
|
||
} // namespace asofjoin | ||
} // namespace compute | ||
} // namespace arrow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.