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

How to describe/Show table in U-SQL? #126

Open
HermeetB opened this issue Apr 6, 2018 · 5 comments
Open

How to describe/Show table in U-SQL? #126

HermeetB opened this issue Apr 6, 2018 · 5 comments

Comments

@HermeetB
Copy link

HermeetB commented Apr 6, 2018

I have a requirement to pull the table schema information using U-SQL. Like the columns in table and datatype. How can I achieve this?

@MikeRys
Copy link
Collaborator

MikeRys commented Apr 7, 2018

U-SQL has a full set of catalog views, e.g., usql.tables etc. The documentation on http://aka.ms/usql_reference contains examples etc.

@HermeetB
Copy link
Author

HermeetB commented Apr 9, 2018

The requirement has changed a bit. Instead of table we need Views. So finally we want columns and datatypes of a view not table. Can you please help to achieve this?

@MikeRys
Copy link
Collaborator

MikeRys commented Apr 9, 2018

Views is a bit harder since we currently only track their names and definition in the catalog views. The schema is inferred from the query at compile time, since the view is bound late during inlining and compilation and is not guaranteed to be the same as when the view was defined. Can you please file a feature request at http://aka.ms/adlfeedback for supporting at least the option?

@HermeetB
Copy link
Author

Thanks a lot for your help Mike. I will file a request in the above shared link.

@MikeRys
Copy link
Collaborator

MikeRys commented Apr 10, 2018

Thanks... Please close the issue once you filed or upvoted the request.

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