Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

#45 Add register_table/deregister_table and expose some public mod #46

Merged
merged 2 commits into from
Apr 4, 2022

Conversation

jychen7
Copy link
Member

@jychen7 jychen7 commented Apr 2, 2022

@@ -38,8 +38,8 @@ uuid = { version = "0.8", features = ["v4"] }
mimalloc = { version = "*", default-features = false }

[lib]
name = "_internal"
crate-type = ["cdylib"]
name = "datafusion_python"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

from datafusion import ExecutionContext


@pytest.fixture
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moved to datafusion/tests/conftest.py for shared usage in test_context and test_sql

@@ -38,7 +38,7 @@ pub(crate) struct PyDatabase {
}

#[pyclass(name = "Table", module = "datafusion", subclass)]
pub(crate) struct PyTable {
pub struct PyTable {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -25,7 +25,7 @@ use datafusion::physical_plan::functions::Volatility;
use crate::errors::DataFusionError;

/// Utility to collect rust futures with GIL released
pub(crate) fn wait_for_future<F: Future>(py: Python, f: F) -> F::Output
pub fn wait_for_future<F: Future>(py: Python, f: F) -> F::Output
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jychen7 jychen7 changed the title #45 Add register_table and deregister_table #45 Add register_table/deregister_table and expose some public mod Apr 3, 2022
@jychen7 jychen7 marked this pull request as ready for review April 3, 2022 15:01
@jychen7
Copy link
Member Author

jychen7 commented Apr 3, 2022

@jimexist , see if you have time to take a look

also cc @matthewmturner (from Q2 plan, I saw you have interest in python binding as well)

@jimexist jimexist merged commit 0fe08fe into datafusion-contrib:main Apr 4, 2022
@jychen7 jychen7 deleted the register-table branch April 5, 2022 02:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants