Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: reorganize functions #227

Merged
merged 1 commit into from
Dec 24, 2024
Merged
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
609 changes: 300 additions & 309 deletions sqlframe/base/function_alternatives.py

Large diffs are not rendered by default.

1,073 changes: 1,046 additions & 27 deletions sqlframe/base/functions.py

Large diffs are not rendered by default.

32 changes: 32 additions & 0 deletions sqlframe/base/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,38 @@ def _to_row(cls, columns: t.List[str], values: t.Iterable[t.Any]) -> Row:
converted_values.append(cls._to_value(value))
return _create_row(columns, converted_values)

@property
def _is_bigquery(self) -> bool:
return False

@property
def _is_databricks(self) -> bool:
return False

@property
def _is_duckdb(self) -> bool:
return False

@property
def _is_postgres(self) -> bool:
return False

@property
def _is_redshift(self) -> bool:
return False

@property
def _is_snowflake(self) -> bool:
return False

@property
def _is_spark(self) -> bool:
return False

@property
def _is_standalone(self) -> bool:
return False

class Builder:
SQLFRAME_INPUT_DIALECT_KEY = "sqlframe.input.dialect"
SQLFRAME_OUTPUT_DIALECT_KEY = "sqlframe.output.dialect"
Expand Down
Loading
Loading