Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table system.parts does not exist #7

Open
poundifdef opened this issue Apr 18, 2024 · 0 comments
Open

Table system.parts does not exist #7

poundifdef opened this issue Apr 18, 2024 · 0 comments

Comments

@poundifdef
Copy link

With the following program, I'm not able to query system.parts.

package main

import (
	"fmt"

	"github.com/chdb-io/chdb-go/chdb"
)

func main() {
	result, err := chdb.Query("SELECT version()", "CSV")
	if err != nil {
		fmt.Println(err)
		return
	}
	fmt.Println(result)

	session, _ := chdb.NewSession("./data")
	defer session.Close()

	q := `select * from system.parts`
	ret, err := session.Query(q)
	if err != nil {
		fmt.Println(err)
		return
	}

	fmt.Println(ret)
}

This outputs the following:

$ CGO_LDFLAGS="-L." go run .
"23.10.1.1"

Code: 60. DB::Exception: Table system.parts does not exist. (UNKNOWN_TABLE)

I am linking downloaded chdb v1.3.0. It is curious that the version is so old. It seems like system.parts was added in December 2023 based on these issues:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant