Skip to content

Commit 66ddb8b

Browse files
committed
merge
Signed-off-by: Nicholas Gates <[email protected]>
1 parent 930ba8c commit 66ddb8b

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

vortex-ffi/cinclude/vortex.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -662,8 +662,8 @@ void vx_file_free(const vx_file *ptr);
662662
/**
663663
* Open a file at the given path on the file system.
664664
*/
665-
const vx_file *vx_file_open_reader(const vx_file_open_options *options,
666-
const vx_session *session,
665+
const vx_file *vx_file_open_reader(const vx_session *session,
666+
const vx_file_open_options *options,
667667
vx_error **error_out);
668668

669669
void vx_file_write_array(const vx_session *session,

vortex-ffi/examples/hello-vortex.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ int main(int argc, char *argv[]) {
3030
.property_len = 0,
3131
};
3232

33-
const vx_file *file = vx_file_open_reader(&open_opts, session, &error);
33+
const vx_file *file = vx_file_open_reader(session, &open_opts, &error);
3434
if (error != NULL) {
3535
fprintf(stderr, "Failed to open file: %s\n%s", uri, vx_string_ptr(vx_error_get_message(error)));
3636
vx_error_free(error);
@@ -51,7 +51,7 @@ int main(int argc, char *argv[]) {
5151

5252
// Start scanning
5353
printf("\nScanning file...\n");
54-
vx_array_iterator *scan = vx_file_scan(file, NULL, &error);
54+
vx_array_iterator *scan = vx_file_scan(session, file, NULL, &error);
5555
if (error != NULL) {
5656
fprintf(stderr, "Failed to create file scan iterator\n");
5757
vx_error_free(error);

vortex-ffi/src/file.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ impl vx_file_scan_options {
141141
/// Open a file at the given path on the file system.
142142
#[unsafe(no_mangle)]
143143
pub unsafe extern "C-unwind" fn vx_file_open_reader(
144-
options: *const vx_file_open_options,
145144
session: *const vx_session,
145+
options: *const vx_file_open_options,
146146
error_out: *mut *mut vx_error,
147147
) -> *const vx_file {
148148
let session = vx_session::as_ref(session);

vortex-python/python/vortex/__init__.py

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

4-
from . import _lib, arrays, dataset, expr, file, io, registry, ray, scan
4+
from . import _lib, arrays, dataset, expr, file, io, ray, registry, scan
55
from ._lib.arrays import ( # pyright: ignore[reportMissingModuleSource]
66
AlpArray,
77
AlpRdArray,

0 commit comments

Comments
 (0)