Skip to main content

Module tests

Module tests 

Source
Available on crate feature integration-tests only.

Modules§

catalog
This is an example of an async table provider that will call functions on the tokio runtime of the library providing the function. Since we cannot share a tokio runtime across the ffi boundary and the producer and consumer may have different runtimes, we need to store a reference to the runtime and enter it during streaming calls. The entering of the runtime will occur by the datafusion_ffi crate during the streaming calls. This code serves as an integration test of this feature. If we do not correctly access the runtime, then you will get a panic when trying to do operations such as spawning a tokio task.
utils

Structs§

ForeignLibraryModule
This struct defines the module interfaces. It is to be shared by both the module loading program and library that implements the module.
ForeignLibraryModuleRef
This is the pointer to the prefix of ForeignLibraryModule.
ForeignLibraryModule_Prefix
This is the prefix fields of ForeignLibraryModule, accessible through ForeignLibraryModuleRef, with .0.prefix().

Statics§

_1as_0lib_1header_0root_bmodule_bloader

Functions§

create_record_batch
create_test_schema
get_foreign_library_module
This defines the entry point for using the module.