Documentation
¶
Index ¶
- func CreateEmptyList(dataType arrow.DataType, allocator memory.Allocator) (*arrowv1.ScalarListValue, error)
- func ProtoToArrowDataType(protoType *arrowv1.ArrowType) (arrow.DataType, error)
- func ToIdentifierLiteral(name string) *expressionv1.LogicalExprNode
- func ToProto(expr ExprI) (*expressionv1.LogicalExprNode, error)
- type AggregateExprImpl
- func (e *AggregateExprImpl) Add(other Expr) Expr
- func (e *AggregateExprImpl) And(other Expr) Expr
- func (e *AggregateExprImpl) Apply(args ...Expr) Expr
- func (e *AggregateExprImpl) As(alias string) Expr
- func (e *AggregateExprImpl) Attr(attribute string) Expr
- func (e *AggregateExprImpl) Div(other Expr) Expr
- func (e *AggregateExprImpl) Eq(other Expr) Expr
- func (e *AggregateExprImpl) Ge(other Expr) Expr
- func (e *AggregateExprImpl) Gt(other Expr) Expr
- func (e *AggregateExprImpl) IsNotNull() Expr
- func (e *AggregateExprImpl) IsNull() Expr
- func (e *AggregateExprImpl) Le(other Expr) Expr
- func (e *AggregateExprImpl) Lt(other Expr) Expr
- func (e *AggregateExprImpl) Mul(other Expr) Expr
- func (e *AggregateExprImpl) Ne(other Expr) Expr
- func (e *AggregateExprImpl) Not() Expr
- func (e *AggregateExprImpl) Or(other Expr) Expr
- func (e *AggregateExprImpl) String() string
- func (e *AggregateExprImpl) Sub(other Expr) Expr
- func (e *AggregateExprImpl) WithDistinct() *AggregateExprImpl
- type AliasExpr
- func (e *AliasExpr) Add(other Expr) Expr
- func (e *AliasExpr) And(other Expr) Expr
- func (e *AliasExpr) Apply(args ...Expr) Expr
- func (e *AliasExpr) As(alias string) Expr
- func (e *AliasExpr) Attr(attribute string) Expr
- func (e *AliasExpr) Div(other Expr) Expr
- func (e *AliasExpr) Eq(other Expr) Expr
- func (e *AliasExpr) Ge(other Expr) Expr
- func (e *AliasExpr) Gt(other Expr) Expr
- func (e *AliasExpr) IsNotNull() Expr
- func (e *AliasExpr) IsNull() Expr
- func (e *AliasExpr) Le(other Expr) Expr
- func (e *AliasExpr) Lt(other Expr) Expr
- func (e *AliasExpr) Mul(other Expr) Expr
- func (e *AliasExpr) Ne(other Expr) Expr
- func (e *AliasExpr) Not() Expr
- func (e *AliasExpr) Or(other Expr) Expr
- func (e *AliasExpr) String() string
- func (e *AliasExpr) Sub(other Expr) Expr
- type CallExpr
- func (e *CallExpr) Add(other Expr) Expr
- func (e *CallExpr) And(other Expr) Expr
- func (e *CallExpr) Apply(args ...Expr) Expr
- func (e *CallExpr) As(alias string) Expr
- func (e *CallExpr) Attr(attribute string) Expr
- func (e *CallExpr) Div(other Expr) Expr
- func (e *CallExpr) Eq(other Expr) Expr
- func (e *CallExpr) Ge(other Expr) Expr
- func (e *CallExpr) Gt(other Expr) Expr
- func (e *CallExpr) IsNotNull() Expr
- func (e *CallExpr) IsNull() Expr
- func (e *CallExpr) Le(other Expr) Expr
- func (e *CallExpr) Lt(other Expr) Expr
- func (e *CallExpr) Mul(other Expr) Expr
- func (e *CallExpr) Ne(other Expr) Expr
- func (e *CallExpr) Not() Expr
- func (e *CallExpr) Or(other Expr) Expr
- func (e *CallExpr) String() string
- func (e *CallExpr) Sub(other Expr) Expr
- type ColumnExpr
- func (e *ColumnExpr) Add(other Expr) Expr
- func (e *ColumnExpr) And(other Expr) Expr
- func (e *ColumnExpr) Apply(args ...Expr) Expr
- func (e *ColumnExpr) As(alias string) Expr
- func (e *ColumnExpr) Attr(attribute string) Expr
- func (e *ColumnExpr) Div(other Expr) Expr
- func (e *ColumnExpr) Eq(other Expr) Expr
- func (e *ColumnExpr) Ge(other Expr) Expr
- func (e *ColumnExpr) Gt(other Expr) Expr
- func (e *ColumnExpr) IsNotNull() Expr
- func (e *ColumnExpr) IsNull() Expr
- func (e *ColumnExpr) Le(other Expr) Expr
- func (e *ColumnExpr) Lt(other Expr) Expr
- func (e *ColumnExpr) Mul(other Expr) Expr
- func (e *ColumnExpr) Ne(other Expr) Expr
- func (e *ColumnExpr) Not() Expr
- func (e *ColumnExpr) Or(other Expr) Expr
- func (e *ColumnExpr) String() string
- func (e *ColumnExpr) Sub(other Expr) Expr
- func (e *ColumnExpr) WithRelation(relation string) *ColumnExpr
- type DataFrameExpr
- type DataFrameExprImpl
- func (e *DataFrameExprImpl) Add(other Expr) Expr
- func (e *DataFrameExprImpl) Agg(aggFunc string, args ...Expr) Expr
- func (e *DataFrameExprImpl) And(other Expr) Expr
- func (e *DataFrameExprImpl) Apply(args ...Expr) Expr
- func (e *DataFrameExprImpl) As(alias string) Expr
- func (e *DataFrameExprImpl) Attr(attribute string) Expr
- func (e *DataFrameExprImpl) Div(other Expr) Expr
- func (e *DataFrameExprImpl) Eq(other Expr) Expr
- func (e *DataFrameExprImpl) Filter(condition ExprI) DataFrameExpr
- func (e *DataFrameExprImpl) Ge(other Expr) Expr
- func (e *DataFrameExprImpl) Gt(other Expr) Expr
- func (e *DataFrameExprImpl) IsNotNull() Expr
- func (e *DataFrameExprImpl) IsNull() Expr
- func (e *DataFrameExprImpl) Le(other Expr) Expr
- func (e *DataFrameExprImpl) Lt(other Expr) Expr
- func (e *DataFrameExprImpl) Mul(other Expr) Expr
- func (e *DataFrameExprImpl) Ne(other Expr) Expr
- func (e *DataFrameExprImpl) Not() Expr
- func (e *DataFrameExprImpl) Or(other Expr) Expr
- func (e *DataFrameExprImpl) Select(selection Expr) DataFrameExpr
- func (e *DataFrameExprImpl) String() string
- func (e *DataFrameExprImpl) Sub(other Expr) Expr
- type Expr
- func Abs(x Expr) Expr
- func And(a, b Expr) Expr
- func ArrayAverage(array Expr) Expr
- func ArrayConstructor(elements ...Expr) Expr
- func ArrayDistinct(array Expr) Expr
- func ArrayFrequency(array Expr) Expr
- func ArrayJoin(array, separator Expr) Expr
- func ArrayMax(array Expr) Expr
- func ArrayMedian(array Expr) Expr
- func ArrayMin(array Expr) Expr
- func ArrayMode(array Expr, mode ...Expr) Expr
- func ArraySort(array Expr) Expr
- func ArraySortDesc(array Expr) Expr
- func ArrayStddev(array, isSample Expr) Expr
- func ArraySum(array Expr) Expr
- func BankersRound(x Expr, decimals ...Expr) Expr
- func Binary(value []byte) Expr
- func Bool(value bool) Expr
- func BoostRegexpFindall(str, pattern Expr) Expr
- func BytesToUtf8(bytes Expr) Expr
- func Cardinality(array Expr) Expr
- func Cast(expr Expr, to *arrowv1.ArrowType) Expr
- func Ceiling(x Expr) Expr
- func ChalkNow() Expr
- func ChalkWindow() Expr
- func Coalesce(values ...Expr) Expr
- func Col(name string) Expr
- func ColIn(relation string, name string) Expr
- func Concat(first Expr, rest ...Expr) Expr
- func Contains(array, element Expr) Expr
- func Cos(x Expr) Expr
- func CurrentDate() Expr
- func Date(value time.Time) Expr
- func Date32(value int32) Expr
- func Date64(value int64) Expr
- func DateTrunc(unit, timestamp Expr) Expr
- func DayOfMonth(dateTime Expr) Expr
- func DurationMicrosecond(value int64) Expr
- func DurationMillisecond(value int64) Expr
- func DurationNanosecond(value int64) Expr
- func DurationSecond(value int64) Expr
- func ElementAt(array, index Expr) Expr
- func EndsWith(str, suffix Expr) Expr
- func Eq(a, b Expr) Expr
- func Fail(message Expr) Expr
- func Float(value float64) Expr
- func Float16(value float32) Expr
- func Float32(value float32) Expr
- func Float64(value float64) Expr
- func Floor(x Expr) Expr
- func FormatDatetime(timestamp, format Expr) Expr
- func FromBase(str, base Expr) Expr
- func FromBigEndian32(data Expr) Expr
- func FromBigEndian64(data Expr) Expr
- func FromIso8601Timestamp(str Expr) Expr
- func FromUnixSeconds(seconds Expr) Expr
- func FromUtf8(data Expr) Expr
- func FunctionCall(name string, args ...Expr) Expr
- func FunctionCallWithKwargs(name string, args []Expr, kwargs map[string]Expr) Expr
- func GetJsonValue(json Expr, path string) Expr
- func Gt(a, b Expr) Expr
- func Gte(a, b Expr) Expr
- func Hour(timestamp Expr) Expr
- func Identifier(name string) Expr
- func IfElse(condition, trueValue, falseValue Expr) Expr
- func Int(value int64) Expr
- func Int8(value int8) Expr
- func Int16(value int16) Expr
- func Int32(value int32) Expr
- func Int64(value int64) Expr
- func IsNan(x Expr) Expr
- func JaccardSimilarity(left, right Expr) Expr
- func JaroWinklerDistance(left, right, threshold Expr) Expr
- func Jsonify(json Expr) Expr
- func LargeBinary(value []byte) Expr
- func LargeUtf8(value string) Expr
- func LastDayOfMonth(timestamp Expr) Expr
- func Length(str Expr) Expr
- func Like(str, pattern Expr) Expr
- func List(items ...Expr) Expr
- func Log10(x Expr) Expr
- func Lower(str Expr) Expr
- func Lt(a, b Expr) Expr
- func Lte(a, b Expr) Expr
- func Ltrim(str Expr, chars ...Expr) Expr
- func MapContains(mapExpr, predicate Expr) Expr
- func MapGet(mapExpr, key Expr) Expr
- func MapKeysByTopNValues(mapExpr, n Expr) Expr
- func Md5(data Expr) Expr
- func Minute(timestamp Expr) Expr
- func Mod(a, b Expr) Expr
- func Month(dateTime Expr) Expr
- func Nan() Expr
- func Negate(x Expr) Expr
- func Neq(a, b Expr) Expr
- func Now() Expr
- func Null() Expr
- func ParseDatetime(dateStr, format Expr) Expr
- func PartialRatio(left, right Expr) Expr
- func PythonElementAt(array, index Expr) Expr
- func RegexpLike(str, pattern Expr) Expr
- func RegexpReplace(str, pattern Expr, replacement ...Expr) Expr
- func Replace(str, old, new Expr) Expr
- func Reverse(str Expr) Expr
- func Round(x Expr, decimals ...Expr) Expr
- func Rtrim(str Expr, chars ...Expr) Expr
- func ScalarMax(a, b Expr) Expr
- func ScalarMin(a, b Expr) Expr
- func Second(timestamp Expr) Expr
- func SequenceMatcherRatio(left, right Expr) Expr
- func Sha1(data Expr) Expr
- func Sha256(data Expr) Expr
- func Sha512(data Expr) Expr
- func Sin(x Expr) Expr
- func Slice(array, start, length Expr) Expr
- func Split(str, delimiter Expr, maxSplit ...Expr) Expr
- func SpookyHashV232(data Expr) Expr
- func SpookyHashV264(data Expr) Expr
- func Sqrt(x Expr) Expr
- func StartsWith(str, prefix Expr) Expr
- func String(value string) Expr
- func StringFromTimestamp(timestamp Expr) Expr
- func Strpos(str, substr Expr) Expr
- func Strrpos(str, substr Expr) Expr
- func Substr(str, start Expr, length ...Expr) Expr
- func Tan(x Expr) Expr
- func Timestamp(value time.Time) Expr
- func TimestampFromString(str Expr) Expr
- func TimestampMicrosecond(value time.Time) Expr
- func TimestampMillisecond(value time.Time) Expr
- func TimestampNanosecond(value time.Time) Expr
- func TimestampSecond(value time.Time) Expr
- func ToHex(data Expr) Expr
- func ToIso8601(timestamp Expr) Expr
- func ToUnixtime(timestamp Expr) Expr
- func ToUtf8(str Expr) Expr
- func TokenSetRatio(left, right Expr) Expr
- func TokenSortRatio(left, right Expr) Expr
- func Trim(str Expr, chars ...Expr) Expr
- func Truncate(x Expr) Expr
- func Uint8(value uint8) Expr
- func Uint16(value uint16) Expr
- func Uint32(value uint32) Expr
- func Uint64(value uint64) Expr
- func Upper(str Expr) Expr
- func Utf8(value string) Expr
- func Year(dateTime Expr) Expr
- func ZiSplitPart(str, delimiter, index Expr) Expr
- type ExprI
- type GetAttributeExpr
- func (e *GetAttributeExpr) Add(other Expr) Expr
- func (e *GetAttributeExpr) And(other Expr) Expr
- func (e *GetAttributeExpr) Apply(args ...Expr) Expr
- func (e *GetAttributeExpr) As(alias string) Expr
- func (e *GetAttributeExpr) Attr(attribute string) Expr
- func (e *GetAttributeExpr) Div(other Expr) Expr
- func (e *GetAttributeExpr) Eq(other Expr) Expr
- func (e *GetAttributeExpr) Ge(other Expr) Expr
- func (e *GetAttributeExpr) Gt(other Expr) Expr
- func (e *GetAttributeExpr) IsNotNull() Expr
- func (e *GetAttributeExpr) IsNull() Expr
- func (e *GetAttributeExpr) Le(other Expr) Expr
- func (e *GetAttributeExpr) Lt(other Expr) Expr
- func (e *GetAttributeExpr) Mul(other Expr) Expr
- func (e *GetAttributeExpr) Ne(other Expr) Expr
- func (e *GetAttributeExpr) Not() Expr
- func (e *GetAttributeExpr) Or(other Expr) Expr
- func (e *GetAttributeExpr) String() string
- func (e *GetAttributeExpr) Sub(other Expr) Expr
- type IdentifierExpr
- func (e *IdentifierExpr) Add(other Expr) Expr
- func (e *IdentifierExpr) And(other Expr) Expr
- func (e *IdentifierExpr) Apply(args ...Expr) Expr
- func (e *IdentifierExpr) As(alias string) Expr
- func (e *IdentifierExpr) Attr(attribute string) Expr
- func (e *IdentifierExpr) Div(other Expr) Expr
- func (e *IdentifierExpr) Eq(other Expr) Expr
- func (e *IdentifierExpr) Ge(other Expr) Expr
- func (e *IdentifierExpr) Gt(other Expr) Expr
- func (e *IdentifierExpr) IsNotNull() Expr
- func (e *IdentifierExpr) IsNull() Expr
- func (e *IdentifierExpr) Le(other Expr) Expr
- func (e *IdentifierExpr) Lt(other Expr) Expr
- func (e *IdentifierExpr) Mul(other Expr) Expr
- func (e *IdentifierExpr) Ne(other Expr) Expr
- func (e *IdentifierExpr) Not() Expr
- func (e *IdentifierExpr) Or(other Expr) Expr
- func (e *IdentifierExpr) String() string
- func (e *IdentifierExpr) Sub(other Expr) Expr
- type LiteralExpr
- func (e *LiteralExpr) Add(other Expr) Expr
- func (e *LiteralExpr) And(other Expr) Expr
- func (e *LiteralExpr) Apply(args ...Expr) Expr
- func (e *LiteralExpr) As(alias string) Expr
- func (e *LiteralExpr) Attr(attribute string) Expr
- func (e *LiteralExpr) Div(other Expr) Expr
- func (e *LiteralExpr) Eq(other Expr) Expr
- func (e *LiteralExpr) Ge(other Expr) Expr
- func (e *LiteralExpr) Gt(other Expr) Expr
- func (e *LiteralExpr) IsNotNull() Expr
- func (e *LiteralExpr) IsNull() Expr
- func (e *LiteralExpr) Le(other Expr) Expr
- func (e *LiteralExpr) Lt(other Expr) Expr
- func (e *LiteralExpr) Mul(other Expr) Expr
- func (e *LiteralExpr) Ne(other Expr) Expr
- func (e *LiteralExpr) Not() Expr
- func (e *LiteralExpr) Or(other Expr) Expr
- func (e *LiteralExpr) String() string
- func (e *LiteralExpr) Sub(other Expr) Expr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateEmptyList ¶ added in v1.2.139
func CreateEmptyList(dataType arrow.DataType, allocator memory.Allocator) (*arrowv1.ScalarListValue, error)
CreateEmptyList creates an empty list with the specified arrow type
func ProtoToArrowDataType ¶ added in v1.2.139
ProtoToArrowDataType converts a protobuf ArrowType to an Arrow DataType
func ToIdentifierLiteral ¶ added in v1.2.95
func ToIdentifierLiteral(name string) *expressionv1.LogicalExprNode
func ToProto ¶
func ToProto(expr ExprI) (*expressionv1.LogicalExprNode, error)
ToProto converts an ExprI to a LogicalExprNode proto message
Types ¶
type AggregateExprImpl ¶ added in v1.2.106
type AggregateExprImpl struct {
Expr
Function string
Arguments []Expr
DataFrame DataFrameExpr
Conditions []Expr // Accumulated filter conditions
Distinct bool
Selection Expr
}
AggregateExprImpl represents an aggregation expression that returns a scalar
func (*AggregateExprImpl) Add ¶ added in v1.2.106
func (e *AggregateExprImpl) Add(other Expr) Expr
Implement Expr interface for AggregateExprImpl
func (*AggregateExprImpl) And ¶ added in v1.2.106
func (e *AggregateExprImpl) And(other Expr) Expr
func (*AggregateExprImpl) Apply ¶ added in v1.2.106
func (e *AggregateExprImpl) Apply(args ...Expr) Expr
func (*AggregateExprImpl) As ¶ added in v1.2.106
func (e *AggregateExprImpl) As(alias string) Expr
func (*AggregateExprImpl) Attr ¶ added in v1.2.106
func (e *AggregateExprImpl) Attr(attribute string) Expr
func (*AggregateExprImpl) Div ¶ added in v1.2.106
func (e *AggregateExprImpl) Div(other Expr) Expr
func (*AggregateExprImpl) Eq ¶ added in v1.2.106
func (e *AggregateExprImpl) Eq(other Expr) Expr
func (*AggregateExprImpl) Ge ¶ added in v1.2.106
func (e *AggregateExprImpl) Ge(other Expr) Expr
func (*AggregateExprImpl) Gt ¶ added in v1.2.106
func (e *AggregateExprImpl) Gt(other Expr) Expr
func (*AggregateExprImpl) IsNotNull ¶ added in v1.2.106
func (e *AggregateExprImpl) IsNotNull() Expr
func (*AggregateExprImpl) IsNull ¶ added in v1.2.106
func (e *AggregateExprImpl) IsNull() Expr
func (*AggregateExprImpl) Le ¶ added in v1.2.106
func (e *AggregateExprImpl) Le(other Expr) Expr
func (*AggregateExprImpl) Lt ¶ added in v1.2.106
func (e *AggregateExprImpl) Lt(other Expr) Expr
func (*AggregateExprImpl) Mul ¶ added in v1.2.106
func (e *AggregateExprImpl) Mul(other Expr) Expr
func (*AggregateExprImpl) Ne ¶ added in v1.2.106
func (e *AggregateExprImpl) Ne(other Expr) Expr
func (*AggregateExprImpl) Not ¶ added in v1.2.106
func (e *AggregateExprImpl) Not() Expr
func (*AggregateExprImpl) Or ¶ added in v1.2.106
func (e *AggregateExprImpl) Or(other Expr) Expr
func (*AggregateExprImpl) String ¶ added in v1.2.106
func (e *AggregateExprImpl) String() string
func (*AggregateExprImpl) Sub ¶ added in v1.2.106
func (e *AggregateExprImpl) Sub(other Expr) Expr
func (*AggregateExprImpl) WithDistinct ¶ added in v1.2.106
func (e *AggregateExprImpl) WithDistinct() *AggregateExprImpl
WithDistinct adds DISTINCT to the aggregation
type AliasExpr ¶
AliasExpr represents an aliased expression
type CallExpr ¶
CallExpr represents function calls and method calls
type ColumnExpr ¶
ColumnExpr represents a column reference
func (*ColumnExpr) Add ¶
func (e *ColumnExpr) Add(other Expr) Expr
Implement Expr interface for ColumnExpr
func (*ColumnExpr) And ¶
func (e *ColumnExpr) And(other Expr) Expr
func (*ColumnExpr) Apply ¶ added in v1.2.95
func (e *ColumnExpr) Apply(args ...Expr) Expr
func (*ColumnExpr) As ¶
func (e *ColumnExpr) As(alias string) Expr
func (*ColumnExpr) Attr ¶
func (e *ColumnExpr) Attr(attribute string) Expr
func (*ColumnExpr) Div ¶
func (e *ColumnExpr) Div(other Expr) Expr
func (*ColumnExpr) Eq ¶
func (e *ColumnExpr) Eq(other Expr) Expr
func (*ColumnExpr) Ge ¶
func (e *ColumnExpr) Ge(other Expr) Expr
func (*ColumnExpr) Gt ¶
func (e *ColumnExpr) Gt(other Expr) Expr
func (*ColumnExpr) IsNotNull ¶
func (e *ColumnExpr) IsNotNull() Expr
func (*ColumnExpr) IsNull ¶
func (e *ColumnExpr) IsNull() Expr
func (*ColumnExpr) Le ¶
func (e *ColumnExpr) Le(other Expr) Expr
func (*ColumnExpr) Lt ¶
func (e *ColumnExpr) Lt(other Expr) Expr
func (*ColumnExpr) Mul ¶
func (e *ColumnExpr) Mul(other Expr) Expr
func (*ColumnExpr) Ne ¶
func (e *ColumnExpr) Ne(other Expr) Expr
func (*ColumnExpr) Not ¶
func (e *ColumnExpr) Not() Expr
func (*ColumnExpr) Or ¶
func (e *ColumnExpr) Or(other Expr) Expr
func (*ColumnExpr) String ¶
func (e *ColumnExpr) String() string
func (*ColumnExpr) Sub ¶
func (e *ColumnExpr) Sub(other Expr) Expr
func (*ColumnExpr) WithRelation ¶
func (e *ColumnExpr) WithRelation(relation string) *ColumnExpr
WithRelation adds a relation qualifier to the column
type DataFrameExpr ¶
type DataFrameExpr interface {
ExprI
Filter(condition ExprI) DataFrameExpr
Select(selection Expr) DataFrameExpr
Agg(aggFunc string, args ...Expr) Expr
}
DataFrameExpr represents expressions that operate on DataFrames
func DataFrame ¶
func DataFrame(name string) DataFrameExpr
DataFrame creates a dataframe reference for aggregations
type DataFrameExprImpl ¶ added in v1.2.106
type DataFrameExprImpl struct {
Expr
Name string
Conditions []Expr // Store accumulated filter conditions
Selection Expr // Store expression to be aggregated
}
DataFrameExprImpl represents a dataframe for aggregation operations
func (*DataFrameExprImpl) Add ¶ added in v1.2.106
func (e *DataFrameExprImpl) Add(other Expr) Expr
Implement Expr interface for DataFrameExprImpl
func (*DataFrameExprImpl) Agg ¶ added in v1.2.106
func (e *DataFrameExprImpl) Agg(aggFunc string, args ...Expr) Expr
func (*DataFrameExprImpl) And ¶ added in v1.2.106
func (e *DataFrameExprImpl) And(other Expr) Expr
func (*DataFrameExprImpl) Apply ¶ added in v1.2.106
func (e *DataFrameExprImpl) Apply(args ...Expr) Expr
func (*DataFrameExprImpl) As ¶ added in v1.2.106
func (e *DataFrameExprImpl) As(alias string) Expr
func (*DataFrameExprImpl) Attr ¶ added in v1.2.106
func (e *DataFrameExprImpl) Attr(attribute string) Expr
func (*DataFrameExprImpl) Div ¶ added in v1.2.106
func (e *DataFrameExprImpl) Div(other Expr) Expr
func (*DataFrameExprImpl) Eq ¶ added in v1.2.106
func (e *DataFrameExprImpl) Eq(other Expr) Expr
func (*DataFrameExprImpl) Filter ¶ added in v1.2.106
func (e *DataFrameExprImpl) Filter(condition ExprI) DataFrameExpr
Implement DataFrameExpr interface
func (*DataFrameExprImpl) Ge ¶ added in v1.2.106
func (e *DataFrameExprImpl) Ge(other Expr) Expr
func (*DataFrameExprImpl) Gt ¶ added in v1.2.106
func (e *DataFrameExprImpl) Gt(other Expr) Expr
func (*DataFrameExprImpl) IsNotNull ¶ added in v1.2.106
func (e *DataFrameExprImpl) IsNotNull() Expr
func (*DataFrameExprImpl) IsNull ¶ added in v1.2.106
func (e *DataFrameExprImpl) IsNull() Expr
func (*DataFrameExprImpl) Le ¶ added in v1.2.106
func (e *DataFrameExprImpl) Le(other Expr) Expr
func (*DataFrameExprImpl) Lt ¶ added in v1.2.106
func (e *DataFrameExprImpl) Lt(other Expr) Expr
func (*DataFrameExprImpl) Mul ¶ added in v1.2.106
func (e *DataFrameExprImpl) Mul(other Expr) Expr
func (*DataFrameExprImpl) Ne ¶ added in v1.2.106
func (e *DataFrameExprImpl) Ne(other Expr) Expr
func (*DataFrameExprImpl) Not ¶ added in v1.2.106
func (e *DataFrameExprImpl) Not() Expr
func (*DataFrameExprImpl) Or ¶ added in v1.2.106
func (e *DataFrameExprImpl) Or(other Expr) Expr
func (*DataFrameExprImpl) Select ¶ added in v1.2.106
func (e *DataFrameExprImpl) Select(selection Expr) DataFrameExpr
func (*DataFrameExprImpl) String ¶ added in v1.2.106
func (e *DataFrameExprImpl) String() string
func (*DataFrameExprImpl) Sub ¶ added in v1.2.106
func (e *DataFrameExprImpl) Sub(other Expr) Expr
type Expr ¶
type Expr interface {
ExprI
// Arithmetic operations
Add(other Expr) Expr
Sub(other Expr) Expr
Mul(other Expr) Expr
Div(other Expr) Expr
// Comparison operations
Eq(other Expr) Expr
Ne(other Expr) Expr
Lt(other Expr) Expr
Le(other Expr) Expr
Gt(other Expr) Expr
Ge(other Expr) Expr
// Logical operations
And(other Expr) Expr
Or(other Expr) Expr
Not() Expr
// Null checking
IsNull() Expr
IsNotNull() Expr
// Attribute access
Attr(attribute string) Expr
// Alias
As(alias string) Expr
// Function application
Apply(args ...Expr) Expr
}
func ArrayAverage ¶
ArrayAverage calculates average of numeric array
func ArrayConstructor ¶
ArrayConstructor creates array from elements
func ArrayDistinct ¶
ArrayDistinct returns unique elements from array
func ArrayFrequency ¶
ArrayFrequency returns frequency map of array elements
func ArraySortDesc ¶
ArraySortDesc sorts array in descending order
func ArrayStddev ¶
ArrayStddev calculates standard deviation of array
func BankersRound ¶
BankersRound rounds using banker's rounding (round half to even)
func BoostRegexpFindall ¶
BoostRegexpFindall finds all matches of regular expression
func BytesToUtf8 ¶ added in v1.2.139
BytesToUtf8 converts from binary data to UTF-8 string (same as chalkpy bytes_to_string(..., encoding='utf-8'))
func ChalkWindow ¶ added in v1.2.109
func ChalkWindow() Expr
func DayOfMonth ¶
DayOfMonth extracts day of month from timestamp or date
func DurationMicrosecond ¶
DurationMicrosecond creates a duration in microseconds
func DurationMillisecond ¶
DurationMillisecond creates a duration in milliseconds
func DurationNanosecond ¶
DurationNanosecond creates a duration in nanoseconds
func DurationSecond ¶
DurationSecond creates a duration in seconds
func FormatDatetime ¶
FormatDatetime formats timestamp as string
func FromBigEndian32 ¶
FromBigEndian32 converts binary data to int32 using big-endian byte order
func FromBigEndian64 ¶
FromBigEndian64 converts binary data to int64 using big-endian byte order
func FromIso8601Timestamp ¶
FromIso8601Timestamp parses ISO8601 timestamp string
func FromUnixSeconds ¶
FromUnixSeconds converts Unix timestamp to timestamp
func FunctionCall ¶
FunctionCall creates a function call expression
func FunctionCallWithKwargs ¶
FunctionCallWithKwargs creates a function call expression with keyword arguments
func GetJsonValue ¶
GetJsonValue extracts value from JSON
func JaccardSimilarity ¶
JaccardSimilarity calculates Jaccard similarity between two strings
func JaroWinklerDistance ¶
JaroWinklerDistance calculates Jaro-Winkler distance
func LargeBinary ¶
LargeBinary creates a large binary literal expression
func LastDayOfMonth ¶
LastDayOfMonth returns the last day of the month for given timestamp
func List ¶ added in v1.2.139
List creates a list literal expression Arguments must all be literals and of the same type
func MapContains ¶
MapContains checks if map contains key matching predicate
func MapKeysByTopNValues ¶
MapKeysbyTopNValues returns keys with top N values from map
func ParseDatetime ¶
ParseDatetime parses datetime string with format
func PartialRatio ¶
PartialRatio calculates partial ratio similarity
func PythonElementAt ¶
PythonElementAt returns element at index (0-based for Python compatibility)
func RegexpLike ¶
RegexpLike performs regular expression matching
func RegexpReplace ¶
RegexpReplace replaces text matching regular expression
func SequenceMatcherRatio ¶
SequenceMatcherRatio calculates similarity ratio between two strings
func SpookyHashV232 ¶
SpookyHashV232 calculates 32-bit SpookyHash
func SpookyHashV264 ¶
SpookyHashV264 calculates 64-bit SpookyHash
func StartsWith ¶
StartsWith checks if string starts with prefix
func StringFromTimestamp ¶
StringFromTimestamp converts timestamp to ISO8601 string
func Timestamp ¶
Timestamp creates a timestamp literal expression with nanosecond precision (alias for convenience)
func TimestampFromString ¶
TimestampFromString parses timestamp from ISO8601 string
func TimestampMicrosecond ¶
TimestampMicrosecond creates a timestamp literal expression with microsecond precision
func TimestampMillisecond ¶
TimestampMillisecond creates a timestamp literal expression with millisecond precision
func TimestampNanosecond ¶
TimestampNanosecond creates a timestamp literal expression with nanosecond precision
func TimestampSecond ¶
TimestampSecond creates a timestamp literal expression with second precision
func ToUnixtime ¶
ToUnixtime converts timestamp to Unix timestamp (seconds since epoch)
func TokenSetRatio ¶
TokenSetRatio calculates token set ratio similarity
func TokenSortRatio ¶
TokenSortRatio calculates token sort ratio similarity
func ZiSplitPart ¶
ZiSplitPart splits string and returns part at index (0-based)
type ExprI ¶
type ExprI interface {
// String representation
String() string
// contains filtered or unexported methods
}
type GetAttributeExpr ¶
GetAttributeExpr represents field access like arr.length
func (*GetAttributeExpr) Add ¶
func (e *GetAttributeExpr) Add(other Expr) Expr
Implement Expr interface for GetAttributeExpr
func (*GetAttributeExpr) And ¶
func (e *GetAttributeExpr) And(other Expr) Expr
func (*GetAttributeExpr) Apply ¶ added in v1.2.95
func (e *GetAttributeExpr) Apply(args ...Expr) Expr
func (*GetAttributeExpr) As ¶
func (e *GetAttributeExpr) As(alias string) Expr
func (*GetAttributeExpr) Attr ¶
func (e *GetAttributeExpr) Attr(attribute string) Expr
func (*GetAttributeExpr) Div ¶
func (e *GetAttributeExpr) Div(other Expr) Expr
func (*GetAttributeExpr) Eq ¶
func (e *GetAttributeExpr) Eq(other Expr) Expr
func (*GetAttributeExpr) Ge ¶
func (e *GetAttributeExpr) Ge(other Expr) Expr
func (*GetAttributeExpr) Gt ¶
func (e *GetAttributeExpr) Gt(other Expr) Expr
func (*GetAttributeExpr) IsNotNull ¶
func (e *GetAttributeExpr) IsNotNull() Expr
func (*GetAttributeExpr) IsNull ¶
func (e *GetAttributeExpr) IsNull() Expr
func (*GetAttributeExpr) Le ¶
func (e *GetAttributeExpr) Le(other Expr) Expr
func (*GetAttributeExpr) Lt ¶
func (e *GetAttributeExpr) Lt(other Expr) Expr
func (*GetAttributeExpr) Mul ¶
func (e *GetAttributeExpr) Mul(other Expr) Expr
func (*GetAttributeExpr) Ne ¶
func (e *GetAttributeExpr) Ne(other Expr) Expr
func (*GetAttributeExpr) Not ¶
func (e *GetAttributeExpr) Not() Expr
func (*GetAttributeExpr) Or ¶
func (e *GetAttributeExpr) Or(other Expr) Expr
func (*GetAttributeExpr) String ¶
func (e *GetAttributeExpr) String() string
func (*GetAttributeExpr) Sub ¶
func (e *GetAttributeExpr) Sub(other Expr) Expr
type IdentifierExpr ¶
IdentifierExpr represents an identifier (variable name, column name, etc.)
func (*IdentifierExpr) Add ¶
func (e *IdentifierExpr) Add(other Expr) Expr
Implement Expr interface for IdentifierExpr
func (*IdentifierExpr) And ¶
func (e *IdentifierExpr) And(other Expr) Expr
func (*IdentifierExpr) Apply ¶ added in v1.2.95
func (e *IdentifierExpr) Apply(args ...Expr) Expr
func (*IdentifierExpr) As ¶
func (e *IdentifierExpr) As(alias string) Expr
func (*IdentifierExpr) Attr ¶
func (e *IdentifierExpr) Attr(attribute string) Expr
func (*IdentifierExpr) Div ¶
func (e *IdentifierExpr) Div(other Expr) Expr
func (*IdentifierExpr) Eq ¶
func (e *IdentifierExpr) Eq(other Expr) Expr
func (*IdentifierExpr) Ge ¶
func (e *IdentifierExpr) Ge(other Expr) Expr
func (*IdentifierExpr) Gt ¶
func (e *IdentifierExpr) Gt(other Expr) Expr
func (*IdentifierExpr) IsNotNull ¶
func (e *IdentifierExpr) IsNotNull() Expr
func (*IdentifierExpr) IsNull ¶
func (e *IdentifierExpr) IsNull() Expr
func (*IdentifierExpr) Le ¶
func (e *IdentifierExpr) Le(other Expr) Expr
func (*IdentifierExpr) Lt ¶
func (e *IdentifierExpr) Lt(other Expr) Expr
func (*IdentifierExpr) Mul ¶
func (e *IdentifierExpr) Mul(other Expr) Expr
func (*IdentifierExpr) Ne ¶
func (e *IdentifierExpr) Ne(other Expr) Expr
func (*IdentifierExpr) Not ¶
func (e *IdentifierExpr) Not() Expr
func (*IdentifierExpr) Or ¶
func (e *IdentifierExpr) Or(other Expr) Expr
func (*IdentifierExpr) String ¶
func (e *IdentifierExpr) String() string
func (*IdentifierExpr) Sub ¶
func (e *IdentifierExpr) Sub(other Expr) Expr
type LiteralExpr ¶
type LiteralExpr struct {
Expr
ScalarValue *arrowv1.ScalarValue
IsArrowScalarObject bool
}
LiteralExpr represents a literal value using Arrow scalar values
func (*LiteralExpr) Add ¶
func (e *LiteralExpr) Add(other Expr) Expr
Implement Expr interface for LiteralExpr
func (*LiteralExpr) And ¶
func (e *LiteralExpr) And(other Expr) Expr
func (*LiteralExpr) Apply ¶ added in v1.2.95
func (e *LiteralExpr) Apply(args ...Expr) Expr
func (*LiteralExpr) As ¶
func (e *LiteralExpr) As(alias string) Expr
func (*LiteralExpr) Attr ¶
func (e *LiteralExpr) Attr(attribute string) Expr
func (*LiteralExpr) Div ¶
func (e *LiteralExpr) Div(other Expr) Expr
func (*LiteralExpr) Eq ¶
func (e *LiteralExpr) Eq(other Expr) Expr
func (*LiteralExpr) Ge ¶
func (e *LiteralExpr) Ge(other Expr) Expr
func (*LiteralExpr) Gt ¶
func (e *LiteralExpr) Gt(other Expr) Expr
func (*LiteralExpr) IsNotNull ¶
func (e *LiteralExpr) IsNotNull() Expr
func (*LiteralExpr) IsNull ¶
func (e *LiteralExpr) IsNull() Expr
func (*LiteralExpr) Le ¶
func (e *LiteralExpr) Le(other Expr) Expr
func (*LiteralExpr) Lt ¶
func (e *LiteralExpr) Lt(other Expr) Expr
func (*LiteralExpr) Mul ¶
func (e *LiteralExpr) Mul(other Expr) Expr
func (*LiteralExpr) Ne ¶
func (e *LiteralExpr) Ne(other Expr) Expr
func (*LiteralExpr) Not ¶
func (e *LiteralExpr) Not() Expr
func (*LiteralExpr) Or ¶
func (e *LiteralExpr) Or(other Expr) Expr
func (*LiteralExpr) String ¶
func (e *LiteralExpr) String() string
func (*LiteralExpr) Sub ¶
func (e *LiteralExpr) Sub(other Expr) Expr