Skip to content

Commit abfadb0

Browse files
committed
fix lints and license
Signed-off-by: Andrew Duffy <[email protected]>
1 parent b9efe82 commit abfadb0

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

vortex-datafusion/src/persistent/adapter.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-License-Identifier: Apache-2.0
2+
// SPDX-FileCopyrightText: Apache Software Foundation (ASF)
3+
14
// Licensed to the Apache Software Foundation (ASF) under one
25
// or more contributor license agreements. See the NOTICE file
36
// distributed with this work for additional information

vortex-datafusion/src/persistent/opener.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ impl FileOpener for VortexOpener {
121121

122122
// We know the file schema before we open it.
123123
let schema_adapter =
124-
schema_adapter_factory.create(projected_table_schema.clone(), table_schema.clone());
124+
schema_adapter_factory.create(projected_table_schema, table_schema.clone());
125125

126126
Ok(async move {
127127
// Create FilePruner when we have a predicate and either dynamic expressions

vortex-datafusion/tests/schema_evolution.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
// SPDX-License-Identifier: Apache-2.0
22
// SPDX-FileCopyrightText: Copyright the Vortex contributors
33

4+
#![allow(
5+
clippy::unwrap_in_result,
6+
clippy::unwrap_used,
7+
clippy::tests_outside_test_module
8+
)]
9+
410
//! Test that checks we can evolve schemas in a cmpatible way across files.
511
612
use std::sync::Arc;
@@ -36,7 +42,7 @@ use vortex::session::VortexSession;
3642
use vortex_datafusion::VortexFormat;
3743
use vortex_datafusion::VortexFormatFactory;
3844

39-
static SESSION: LazyLock<VortexSession> = LazyLock::new(|| VortexSession::default());
45+
static SESSION: LazyLock<VortexSession> = LazyLock::new(VortexSession::default);
4046

4147
fn register_vortex_format_factory(
4248
factory: VortexFormatFactory,

0 commit comments

Comments
 (0)