Andrew Gazelka
12/03/2024, 8:48 PMColin Ho
12/03/2024, 9:17 PMlet py_micropartition = py
.import_bound(pyo3::intern!(py, "daft.table"))?
.getattr(pyo3::intern!(py, "MicroPartition"))?
.getattr(pyo3::intern!(py, "_from_pymicropartition"))?
.call1((PyMicroPartition::from(micro_partition),))?;Colin Ho
12/03/2024, 9:18 PMlet py_plan_builder = py
.import_bound(pyo3::intern!(py, "daft.dataframe.dataframe"))?
.getattr(pyo3::intern!(py, "to_logical_plan_builder"))?
.call1((py_micropartition,))?;Colin Ho
12/03/2024, 9:18 PMto_logical_plan_builderAndrew Gazelka
12/03/2024, 9:59 PMAndrew Gazelka
12/03/2024, 10:02 PMColin Ho
12/03/2024, 10:06 PMlet mut result_stream = native_executor
.run(HashMap::new(), cfg.into(), None)?
.into_stream();
it's cuz the hashmap is emptyAndrew Gazelka
12/03/2024, 10:06 PMColin Ho
12/03/2024, 10:06 PMAndrew Gazelka
12/03/2024, 10:13 PMe9a0c5d157d343e191b32b8e473d32f7
how would I get which cache key it is using?
grab the logical plan
https://github.com/Eventual-Inc/Daft/blob/7922d2d810ff92b00008d877aa9a6553bc0dedab/src/daft-logical-plan/src/logical_plan.rs#L14-L34
and find the first source with
https://github.com/Eventual-Inc/Daft/blob/7e89850b8b276a32119f2d59ccbeeb39dc009557/src/daft-logical-plan/src/source_info/mod.rs#L19-L40
?
or is there a more idiomatic wayColin Ho
12/03/2024, 10:15 PMpub fn local_relation(plan: spark_connect::LocalRelation) ?Andrew Gazelka
12/03/2024, 10:17 PMdaft-connectAndrew Gazelka
12/03/2024, 10:17 PMColin Ho
12/03/2024, 10:18 PM