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

sql query error: Filed to find SQL table for type: family #30

Open
ianhzhang opened this issue Sep 10, 2019 · 0 comments
Open

sql query error: Filed to find SQL table for type: family #30

ianhzhang opened this issue Sep 10, 2019 · 0 comments

Comments

@ianhzhang
Copy link

cache := "mycache"

if err = c.CacheCreateWithName(cache); err != nil {
	fmt.Println("CacheCreate error")
}
defer c.CacheDestroy(cache)

// select data using QuerySQL
r, err := c.QuerySQL(cache, false, ignite.QuerySQLData{
	Table: "family",
	Query:    "SELECT * FROM family",
	PageSize: 100,
})
if err != nil {
	fmt.Println("Query err")
	fmt.Println(err)
}

I see error like this:
Query err
[1] Failed to find SQL table for type: family

But I can use pqignite query successfully.
from pyignite import Client

SELECT_STMT = '''SELECT * FROM family'''

client = Client()
client.connect('127.0.0.1', 10800)

for query in [ SELECT_STMT ]:
print(query)
results = client.sql(query, include_field_names=True)
next(results)
for row in results:
print(row)

client.close()

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