diff --git a/.github/workflows/clickhouse.yml b/.github/workflows/clickhouse.yml index 2efae3d..29b326e 100644 --- a/.github/workflows/clickhouse.yml +++ b/.github/workflows/clickhouse.yml @@ -16,7 +16,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.18 + go-version: 1.24 - name: ClickHouse in GitHub Actions uses: EpicStep/clickhouse-github-action@v1.0.0 diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 9dab670..1cd6448 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -16,7 +16,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.18 + go-version: 1.24 - name: Build run: go build -v ./... diff --git a/api/models/graph.go b/api/models/graph.go index fd034fb..188ae5d 100644 --- a/api/models/graph.go +++ b/api/models/graph.go @@ -14,3 +14,4 @@ func (g Graph) GetTree(current string) Graph { } return graph } + diff --git a/dictionary_column.go b/dictionary_column.go index 691745c..8769050 100644 --- a/dictionary_column.go +++ b/dictionary_column.go @@ -111,7 +111,7 @@ func isSameColumnTables(t1, t2 []string) error { sort.Strings(t1) sort.Strings(t2) // TODO linq - for i := 0; i < len(t1); i++ { + for i := range len(t1) { if t1[i] != t2[i] { return fmt.Errorf("table is not same t1=%v, t2=%v", t1, t2) } diff --git a/dictionary_splitter.go b/dictionary_splitter.go index fe14fdf..e0e0af0 100644 --- a/dictionary_splitter.go +++ b/dictionary_splitter.go @@ -290,7 +290,7 @@ func (n *NormalClauseSplitter) buildDimensionJoin() []*types.Join { } ds1, dl1, ds2, dl2 := v.Get1().DataSource, v.Get1().Dimension, v.Get2().DataSource, v.Get2().Dimension var on []*types.JoinOn - for i := 0; i < len(dl1); i++ { + for i := range len(dl1) { k1 := fmt.Sprintf("%v.%v", ds1, dl1[i]) k2 := fmt.Sprintf("%v.%v", ds2, dl2[i]) d1, _ := dGraph.GetDimension(k1)