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

support spark catalog #15

Open
melin opened this issue Dec 9, 2022 · 7 comments
Open

support spark catalog #15

melin opened this issue Dec 9, 2022 · 7 comments

Comments

@melin
Copy link

melin commented Dec 9, 2022

support spark catalog

@parisni
Copy link

parisni commented Dec 24, 2022

Hi melin. Would that feature allow to create table in the spark catalog (so far only temp table can be created, not real tables) ?

@melin
Copy link
Author

melin commented Dec 24, 2022

You cannot create a table. It facilitates spark sql to access starrocks table

@parisni
Copy link

parisni commented Dec 24, 2022

What is the goal of the starrocks catalog if you can't put tables in it ? I thought you meant a starrocks catalogPlugin , same as iceberg, delta or hudi catalog

@melin
Copy link
Author

melin commented Dec 25, 2022

spark catalog 是方便spark sql 直接访问starrocks 中的表。starrocks 是使用mysql 协议,直接使用spark jdbc catalog 也能通过sql 访问starrocks 表,但那样是走jdbc 读取数据,效率不高。参考pingcap 的tispark:
https://github.com/pingcap/tispark/blob/master/docs/userguide_3.0.md#write-with-jdbc-datasource
image

@parisni
Copy link

parisni commented Dec 25, 2022

I guess I got it. Once you setup a starrocks catalog in spark you can list/load all the tables in starroks

@melin
Copy link
Author

melin commented Dec 25, 2022

I guess I got it. Once you setup a starrocks catalog in spark you can list/load all the tables in starroks

You are right to understand

@melin
Copy link
Author

melin commented Dec 28, 2022

计划支持吗?

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

2 participants