agg

package
v1.2.3-hotfix-20240916 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SumSupportedTypes = []types.T{
		types.T_bit,
		types.T_uint8, types.T_uint16, types.T_uint32, types.T_uint64,
		types.T_int8, types.T_int16, types.T_int32, types.T_int64,
		types.T_float32, types.T_float64,
		types.T_decimal64, types.T_decimal128,
	}
	SumReturnType = func(typs []types.Type) types.Type {
		switch typs[0].Oid {
		case types.T_float32, types.T_float64:
			return types.T_float64.ToType()
		case types.T_int8, types.T_int16, types.T_int32, types.T_int64:
			return types.T_int64.ToType()
		case types.T_uint8, types.T_uint16, types.T_uint32, types.T_uint64:
			return types.T_uint64.ToType()
		case types.T_bit:
			return types.T_uint64.ToType()
		case types.T_decimal64:
			return types.New(types.T_decimal128, 38, typs[0].Scale)
		case types.T_decimal128:
			return types.New(types.T_decimal128, 38, typs[0].Scale)
		}
		panic(moerr.NewInternalErrorNoCtxf("unsupported type '%v' for sum", typs[0]))
	}
)
View Source
var BitmapConstructSupportedTypes = []types.T{
	types.T_uint64,
}
View Source
var BitmapOrReturnType = BitmapConstructReturnType
View Source
var BitmapOrSupportedTypes = []types.T{
	types.T_varbinary,
}

Functions

func AnyValueReturnType

func AnyValueReturnType(typs []types.Type) types.Type

func AvgReturnType

func AvgReturnType(typs []types.Type) types.Type

func BitAndReturnType

func BitAndReturnType(typs []types.Type) types.Type

func BitmapConstructReturnType

func BitmapConstructReturnType(_ []types.Type) types.Type

func MaxReturnType

func MaxReturnType(typs []types.Type) types.Type

func MinReturnType

func MinReturnType(typs []types.Type) types.Type

func RegisterAnyValue2 added in v1.2.1

func RegisterAnyValue2(id int64)

func RegisterApproxCount

func RegisterApproxCount(id int64)

func RegisterAvg2 added in v1.2.1

func RegisterAvg2(id int64)

func RegisterBitAnd2 added in v1.2.1

func RegisterBitAnd2(id int64)

func RegisterBitOr2 added in v1.2.1

func RegisterBitOr2(id int64)

func RegisterBitXor2 added in v1.2.1

func RegisterBitXor2(id int64)

func RegisterBitmapConstruct2 added in v1.2.1

func RegisterBitmapConstruct2(id int64)

func RegisterBitmapOr2 added in v1.2.1

func RegisterBitmapOr2(id int64)

func RegisterClusterCenters

func RegisterClusterCenters(id int64)

func RegisterCountColumn

func RegisterCountColumn(id int64)

func RegisterCountStar

func RegisterCountStar(id int64)

func RegisterDenseRank

func RegisterDenseRank(id int64)

func RegisterGroupConcat

func RegisterGroupConcat(id int64)

func RegisterMax2 added in v1.2.1

func RegisterMax2(id int64)

func RegisterMedian

func RegisterMedian(id int64)

func RegisterMin2 added in v1.2.1

func RegisterMin2(id int64)

func RegisterRank

func RegisterRank(id int64)

func RegisterRowNumber

func RegisterRowNumber(id int64)

func RegisterStdDevPop2 added in v1.2.1

func RegisterStdDevPop2(id int64)

func RegisterSum2 added in v1.2.1

func RegisterSum2(id int64)

func RegisterVarPop2 added in v1.2.1

func RegisterVarPop2(id int64)

func VarPopReturnType

func VarPopReturnType(typs []types.Type) types.Type

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL