Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions daft/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def refresh_logger() -> None:
Table,
)
from daft.context import (
get_context,
set_execution_config,
set_planning_config,
execution_config_ctx,
Expand All @@ -87,6 +88,7 @@ def refresh_logger() -> None:
attach_provider,
attach_function,
attach_table,
attach_kv,
create_namespace,
create_namespace_if_not_exists,
create_table,
Expand All @@ -97,20 +99,25 @@ def refresh_logger() -> None:
current_namespace,
current_provider,
current_session,
current_kv,
detach_catalog,
detach_function,
detach_provider,
detach_table,
detach_kv,
drop_namespace,
drop_table,
get_catalog,
get_provider,
get_table,
get_kv,
has_catalog,
has_namespace,
has_provider,
has_table,
has_kv,
list_catalogs,
list_kv,
list_tables,
read_table,
session,
Expand All @@ -119,6 +126,7 @@ def refresh_logger() -> None:
set_namespace,
set_provider,
set_session,
set_kv,
write_table,
)
from daft.udf import udf, func, cls, method, metrics
Expand All @@ -145,6 +153,14 @@ def refresh_logger() -> None:
from daft.sql import sql, sql_expr
from daft.viz import register_viz_hook
from daft.window import Window
from daft.functions.kv import (
kv_put,
kv_get,
kv_get_with_name,
kv_batch_get_with_name,
kv_exists_with_name,
kv_put_with_name,
)
from daft.file import File, VideoFile, AudioFile

import daft.context as context
Expand Down Expand Up @@ -180,6 +196,7 @@ def refresh_logger() -> None:
"attach",
"attach_catalog",
"attach_function",
"attach_kv",
"attach_provider",
"attach_table",
"cls",
Expand All @@ -191,13 +208,15 @@ def refresh_logger() -> None:
"create_table_if_not_exists",
"create_temp_table",
"current_catalog",
"current_kv",
"current_model",
"current_namespace",
"current_provider",
"current_session",
"datasets",
"detach_catalog",
"detach_function",
"detach_kv",
"detach_provider",
"detach_table",
"drop_namespace",
Expand All @@ -214,18 +233,28 @@ def refresh_logger() -> None:
"func",
"functions",
"get_catalog",
"get_context",
"get_kv",
"get_or_create_runner",
"get_or_infer_runner_type",
"get_provider",
"get_table",
"gravitino",
"has_catalog",
"has_kv",
"has_namespace",
"has_provider",
"has_table",
"interval",
"io",
"kv_batch_get_with_name",
"kv_exists_with_name",
"kv_get",
"kv_get_with_name",
"kv_put",
"kv_put_with_name",
"list_catalogs",
"list_kv",
"list_tables",
"lit",
"method",
Expand All @@ -251,6 +280,7 @@ def refresh_logger() -> None:
"session",
"set_catalog",
"set_execution_config",
"set_kv",
"set_model",
"set_namespace",
"set_planning_config",
Expand Down
11 changes: 11 additions & 0 deletions daft/functions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,13 @@
lag,
lead,
)
from daft.functions.kv import (
kv_get,
kv_batch_get,
kv_exists,
kv_put,
)


__all__ = [
"abs",
Expand Down Expand Up @@ -307,6 +314,10 @@
"is_nan",
"is_null",
"jq",
"kv_batch_get",
"kv_exists",
"kv_get",
"kv_put",
"lag",
"lead",
"left",
Expand Down
Loading
Loading