Query
Query(table, pipeline=list())
dataclass
A query builder for ClickHouse.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
table
|
Table | View | str
|
The table to query. |
required |
pipeline
|
list[str]
|
The pipeline of steps to execute. |
list()
|
build()
compile()
select(*args, **kwargs)
derive(**kwargs)
filter(expression)
sort(*args)
aggregate(*args, **kwargs)
group(*args, **kwargs)
take(n=None, *, start=None, end=None)
window(*args, **kwargs)
join(rel, condition, side='inner')
Join the table with another table.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
rel
|
Table | View | str
|
The table to join with. |
required |
condition
|
Expression | str
|
The join condition expression. |
required |
side
|
Literal['inner', 'left', 'right', 'full']
|
The type of join to perform. Defaults to "inner". |
'inner'
|
Returns:
| Type | Description |
|---|---|
Self
|
A new |