Skip to content

Commit 3c23790

Browse files
authored
Merge branch 'main' into reverse_parquet
2 parents cb4a1da + 068f96f commit 3c23790

File tree

75 files changed

+2615
-1066
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+2615
-1066
lines changed

.github/workflows/audit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
steps:
4343
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
4444
- name: Install cargo-audit
45-
uses: taiki-e/install-action@8cd2ac21dc357ca7dd807fe294d11e9ef84f60ec # v2.62.53
45+
uses: taiki-e/install-action@62da238c048aa0f865cc5a322082957d34e7fc1a # v2.62.54
4646
with:
4747
tool: cargo-audit
4848
- name: Run audit check

.github/workflows/rust.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ jobs:
448448
sudo apt-get update -qq
449449
sudo apt-get install -y -qq clang
450450
- name: Setup wasm-pack
451-
uses: taiki-e/install-action@8cd2ac21dc357ca7dd807fe294d11e9ef84f60ec # v2.62.53
451+
uses: taiki-e/install-action@62da238c048aa0f865cc5a322082957d34e7fc1a # v2.62.54
452452
with:
453453
tool: wasm-pack
454454
- name: Run tests with headless mode
@@ -775,7 +775,7 @@ jobs:
775775
- name: Setup Rust toolchain
776776
uses: ./.github/actions/setup-builder
777777
- name: Install cargo-msrv
778-
uses: taiki-e/install-action@8cd2ac21dc357ca7dd807fe294d11e9ef84f60ec # v2.62.53
778+
uses: taiki-e/install-action@62da238c048aa0f865cc5a322082957d34e7fc1a # v2.62.54
779779
with:
780780
tool: cargo-msrv
781781

.github/workflows/take.yml

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
name: Assign the issue via a `take` comment
18+
name: Assign/unassign the issue via `take` or `untake` comment
1919
on:
2020
issue_comment:
2121
types: created
@@ -26,16 +26,30 @@ permissions:
2626
jobs:
2727
issue_assign:
2828
runs-on: ubuntu-latest
29-
if: (!github.event.issue.pull_request) && github.event.comment.body == 'take'
29+
if: (!github.event.issue.pull_request) && (github.event.comment.body == 'take' || github.event.comment.body == 'untake')
3030
concurrency:
3131
group: ${{ github.actor }}-issue-assign
3232
steps:
33-
- run: |
34-
CODE=$(curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -LI https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/assignees/${{ github.event.comment.user.login }} -o /dev/null -w '%{http_code}\n' -s)
35-
if [ "$CODE" -eq "204" ]
33+
- name: Take or untake issue
34+
env:
35+
COMMENT_BODY: ${{ github.event.comment.body }}
36+
ISSUE_NUMBER: ${{ github.event.issue.number }}
37+
USER_LOGIN: ${{ github.event.comment.user.login }}
38+
REPO: ${{ github.repository }}
39+
TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
run: |
41+
if [ "$COMMENT_BODY" == "take" ]
3642
then
37-
echo "Assigning issue ${{ github.event.issue.number }} to ${{ github.event.comment.user.login }}"
38-
curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -d '{"assignees": ["${{ github.event.comment.user.login }}"]}' https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/assignees
39-
else
40-
echo "Cannot assign issue ${{ github.event.issue.number }} to ${{ github.event.comment.user.login }}"
43+
CODE=$(curl -H "Authorization: token $TOKEN" -LI https://api.github.com/repos/$REPO/issues/$ISSUE_NUMBER/assignees/$USER_LOGIN -o /dev/null -w '%{http_code}\n' -s)
44+
if [ "$CODE" -eq "204" ]
45+
then
46+
echo "Assigning issue $ISSUE_NUMBER to $USER_LOGIN"
47+
curl -X POST -H "Authorization: token $TOKEN" -H "Content-Type: application/json" -d "{\"assignees\": [\"$USER_LOGIN\"]}" https://api.github.com/repos/$REPO/issues/$ISSUE_NUMBER/assignees
48+
else
49+
echo "Cannot assign issue $ISSUE_NUMBER to $USER_LOGIN"
50+
fi
51+
elif [ "$COMMENT_BODY" == "untake" ]
52+
then
53+
echo "Unassigning issue $ISSUE_NUMBER from $USER_LOGIN"
54+
curl -X DELETE -H "Authorization: token $TOKEN" -H "Content-Type: application/json" -d "{\"assignees\": [\"$USER_LOGIN\"]}" https://api.github.com/repos/$REPO/issues/$ISSUE_NUMBER/assignees
4155
fi

datafusion-examples/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ cargo run --example dataframe
9090
- [`examples/udf/simple_udf.rs`](examples/udf/simple_udf.rs): Define and invoke a User Defined Scalar Function (UDF)
9191
- [`examples/udf/simple_udtf.rs`](examples/udf/simple_udtf.rs): Define and invoke a User Defined Table Function (UDTF)
9292
- [`examples/udf/simple_udfw.rs`](examples/udf/simple_udwf.rs): Define and invoke a User Defined Window Function (UDWF)
93-
- [`sql_analysis.rs`](examples/sql_analysis.rs): Analyse SQL queries with DataFusion structures
94-
- [`sql_frontend.rs`](examples/sql_frontend.rs): Create LogicalPlans (only) from sql strings
95-
- [`sql_dialect.rs`](examples/sql_dialect.rs): Example of implementing a custom SQL dialect on top of `DFParser`
96-
- [`sql_query.rs`](examples/sql_query.rs): Query data using SQL (in memory `RecordBatches`, local Parquet files)
93+
- [`examples/sql_ops/analysis.rs`](examples/sql_ops/analysis.rs): Analyse SQL queries with DataFusion structures
94+
- [`examples/sql_ops/frontend.rs`](examples/sql_ops/frontend.rs): Create LogicalPlans (only) from sql strings
95+
- [`examples/sql_ops/dialect.rs`](examples/sql_ops/dialect.rs): Example of implementing a custom SQL dialect on top of `DFParser`
96+
- [`examples/sql_ops/query.rs`](examples/sql_ops/query.rs): Query data using SQL (in memory `RecordBatches`, local Parquet files)
9797

9898
## Distributed
9999

datafusion-examples/examples/builtin_functions/date_time.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
// specific language governing permissions and limitations
1616
// under the License.
1717

18+
//! See `main.rs` for how to run it.
19+
1820
use std::sync::Arc;
1921

2022
use arrow::array::{Date32Array, Int32Array};

datafusion-examples/examples/builtin_functions/function_factory.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
// specific language governing permissions and limitations
1616
// under the License.
1717

18+
//! See `main.rs` for how to run it.
19+
1820
use arrow::datatypes::DataType;
1921
use datafusion::common::tree_node::{Transformed, TreeNode};
2022
use datafusion::common::{exec_datafusion_err, exec_err, internal_err, DataFusionError};

datafusion-examples/examples/builtin_functions/regexp.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
// specific language governing permissions and limitations
1717
// under the License.
1818

19+
//! See `main.rs` for how to run it.
20+
1921
use datafusion::common::{assert_batches_eq, assert_contains};
2022
use datafusion::error::Result;
2123
use datafusion::prelude::*;

datafusion-examples/examples/custom_data_source/csv_json_opener.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
// specific language governing permissions and limitations
1616
// under the License.
1717

18+
//! See `main.rs` for how to run it.
19+
1820
use std::sync::Arc;
1921

2022
use arrow::datatypes::{DataType, Field, Schema};

datafusion-examples/examples/custom_data_source/csv_sql_streaming.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
// specific language governing permissions and limitations
1616
// under the License.
1717

18+
//! See `main.rs` for how to run it.
19+
1820
use datafusion::common::test_util::datafusion_test_data;
1921
use datafusion::error::Result;
2022
use datafusion::prelude::*;

datafusion-examples/examples/custom_data_source/custom_datasource.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
// specific language governing permissions and limitations
1616
// under the License.
1717

18+
//! See `main.rs` for how to run it.
19+
1820
use std::any::Any;
1921
use std::collections::{BTreeMap, HashMap};
2022
use std::fmt::{self, Debug, Formatter};

0 commit comments

Comments
 (0)