-
Notifications
You must be signed in to change notification settings - Fork 164
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
Where can we find examples of serializing a view as a plan? #751
Comments
I think that these examples are "examples of potential future uses." Interestingly enough, there has been a discussion on the Iceberg mailing list in the last few weeks to make exactly that envisioned use case a reality. |
Gluten (a Spark plugin) has modified Substrait to read Iceberg files. That modification on my list to mainstream these changes at some point: |
More generally speaking, there is no currently existing example that is interesting. To make an interesting one depends on a database having an interesting way of querying a view. I threw together a simple example using ibis and duckdb here: query-duckdb-view Representing a query of a view can happen a variety of ways: Then, various systems will likely present views in different ways, though I assume many will resolve it at the catalog level: a "table name" that matches a view name will read from the view and be otherwise transparent. Altogether, a logical example would be:
How a producer does (1) and how a consumer does (2) is where you'd get a variety of interesting examples (maybe). If there's some particular examples you'd like then maybe you can propose them? I don't use iceberg, spark, or trino, so I don't have an environment in which I can produce examples. |
The example use case in homepage has this interesting line:
It's a really awesome example, but I can't find any relative code of Substrait in Iceberg, Spark, and Trino.
Did I miss something?
BTW, I assume that it will be more friendly to attach the example link to the use cases on the homepage
The text was updated successfully, but these errors were encountered: