jzhuge commented on PR #4925: URL: https://github.com/apache/iceberg/pull/4925#issuecomment-1284428712
> > Multiple dialects are available at the same time, so in one version. > > What is an API example to achieve that? Not exposed currently. Do you have a use case? What do u need in the API to achieve it? > > > Each `Version` contains a list of representations. See view spec, section `Versions`. > > In the created `View`, current version contains a single SQL view representation. > > Could you clarify if the above two statements are consistent? It seems the former implies a version contains a list of representations and the latter indicates a version contains a single representation. What I meant was the current builder API only supports creating a view view with a single representation, but the view spec and on-disk format does support multiple representations. > > > > Finally, what in the example you gave instructs building a SQLViewRepresentation? > > This question was about how to implement the builder. Will this builder result in creating a `SQLViewRepresentation`? If yes, how would it know it should create a `SQLViewRepresentation` vs something else (e.g., not SQL representation)? Yes. The current view builder only supports SQLViewRepresentation. For other representations, one idea is to add more `withXXX` methods. Any suggestion? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
