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

simple query engine on top of object store #623

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

brunocalza
Copy link
Collaborator

@brunocalza brunocalza commented Apr 16, 2024

Summary

This PR is a POC on how to query Parquet data from Object Store. This is an attempt to use the Object Store as the Store Engine for Tableland.

Signed-off-by: Bruno Calza <brunoangelicalza@gmail.com>
if err != nil {
return nil, err
}
ast.Statements[0].(*sqlparser.Select).From.(*sqlparser.AliasedTableExpr).Expr.(*sqlparser.Table).Name = sqlparser.Identifier(fmt.Sprintf("read_parquet(['http://34.106.97.87:8002/v1/os/t2gh7m2iaqvwv2oexsaetncmdm6hhac7k6ne3teda/%s'])", ast.Statements[0].(*sqlparser.Select).From.(*sqlparser.AliasedTableExpr).Expr.(*sqlparser.Table).Name.String()))
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

replace the table name from SQL statement to fmt.Sprintf("read_parquet(['http://34.106.97.87:8002/v1/os/t2gh7m2iaqvwv2oexsaetncmdm6hhac7k6ne3teda/%s']

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

Successfully merging this pull request may close these issues.

1 participant