This is an automated email from the ASF dual-hosted git repository. hanahmily pushed a commit to branch feat/liasion in repository https://gitbox.apache.org/repos/asf/skywalking-banyandb.git
commit 02817dd2e104ce80f4807faa59441b94a24340ab Merge: dfddd49 9d487a4 Author: Qiuxia Fan <[email protected]> AuthorDate: Mon Jun 28 18:11:38 2021 +0800 merge api/common/metadata.go | 12 +- api/fbs/v1/query.fbs | 4 +- api/fbs/v1/query_generated.go | 6 +- api/fbs/v1/schema.fbs | 10 +- api/fbs/v1/schema_generated.go | 36 ++-- banyand/series/series.go | 7 +- go.mod | 2 + go.sum | 3 +- pkg/convert/number.go | 24 +++ pkg/logical/analyzer.go | 200 +++++++++++++++++++ pkg/logical/analyzer_test.go | 255 ++++++++++++++++++++++++ pkg/logical/common_test.go | 232 +++++++++++++++++++++ pkg/logical/expr.go | 192 ++++++++++++++++++ pkg/logical/expr_literal.go | 135 +++++++++++++ api/common/metadata.go => pkg/logical/format.go | 27 ++- pkg/{convert/number.go => logical/interface.go} | 54 +++-- pkg/logical/plan.go | 133 ++++++++++++ pkg/logical/plan_indexscan.go | 162 +++++++++++++++ pkg/logical/plan_orderby.go | 96 +++++++++ pkg/logical/plan_projection.go | 100 ++++++++++ pkg/logical/plan_tablescan.go | 122 ++++++++++++ pkg/logical/plan_traceid.go | 72 +++++++ pkg/logical/schema.go | 117 +++++++++++ 23 files changed, 1943 insertions(+), 58 deletions(-) diff --cc pkg/convert/number.go index 0dbc4ca,88c80fc..f57f87c --- a/pkg/convert/number.go +++ b/pkg/convert/number.go @@@ -41,4 -41,28 +41,28 @@@ func IntToInt64(numbers ...int) []int6 arr = append(arr, int64(numbers[i])) } return arr + } + + func Int8ToInt64(numbers ...int8) []int64 { + var arr []int64 + for i := 0; i < len(numbers); i++ { + arr = append(arr, int64(numbers[i])) + } + return arr + } + + func Int16ToInt64(numbers ...int16) []int64 { + var arr []int64 + for i := 0; i < len(numbers); i++ { + arr = append(arr, int64(numbers[i])) + } + return arr + } + + func Int32ToInt64(numbers ...int32) []int64 { + var arr []int64 + for i := 0; i < len(numbers); i++ { + arr = append(arr, int64(numbers[i])) + } + return arr -} +}
