You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@comphead -- I think the idea is that the View definition is stored in whatever implements TableProvider (aka ViewTable in https://github.com/apache/arrow-datafusion/pull/2279/files). In order to show the original SQL somehow that information would have to be passed out (perhaps via TableProvider or some other trait)
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
As suggested by @Dandandan on #2279 (comment) it would be very nice to be able to see the original SQL used to define a view.
Apparently postgres uses a function: https://stackoverflow.com/questions/14634322/how-to-see-the-create-view-code-for-a-view-in-postgresql
Mysql uses
SHOW CREATE VIEW
: https://dev.mysql.com/doc/refman/8.0/en/show-create-view.htmlDescribe the solution you'd like
Store the original SQL and make it accessable via SQL
Describe alternatives you've considered
Additional context
#2279
The text was updated successfully, but these errors were encountered: