Title: Support `get_view_names` · Issue #303 · googleapis/python-spanner-sqlalchemy · GitHub
Open Graph Title: Support `get_view_names` · Issue #303 · googleapis/python-spanner-sqlalchemy
X Title: Support `get_view_names` · Issue #303 · googleapis/python-spanner-sqlalchemy
Description: Is your feature request related to a problem? Please describe. I would like to catalog tables and views of Spanner on OpenMetadata. To do so, I would like to extract metadata of not only tables but also views. https://open-metadata.org/ ...
Open Graph Description: Is your feature request related to a problem? Please describe. I would like to catalog tables and views of Spanner on OpenMetadata. To do so, I would like to extract metadata of not only tables but...
X Description: Is your feature request related to a problem? Please describe. I would like to catalog tables and views of Spanner on OpenMetadata. To do so, I would like to extract metadata of not only tables but...
Opengraph URL: https://github.com/googleapis/python-spanner-sqlalchemy/issues/303
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support `get_view_names`","articleBody":"**Is your feature request related to a problem? Please describe.**\r\nI would like to catalog tables and views of Spanner on OpenMetadata. To do so, I would like to extract metadata of not only tables but also views.\r\n\r\n- https://open-metadata.org/\r\n\r\n## Code to reproduce\r\n\r\n```\r\nfrom sqlalchemy import (\r\n Column,\r\n Integer,\r\n MetaData,\r\n String,\r\n Table,\r\n create_engine,\r\n inspect,\r\n)\r\n\r\nurl = \"spanner+spanner:///projects/xxx/instances/xxx/databases/xxx\"\r\nengine = create_engine(url)\r\nmetadata = MetaData(bind=engine)\r\ninsp = inspect(engine)\r\n\r\ninsp.get_view_names()\r\n```\r\n\r\n## Error message\r\n\r\n```\r\nFile ~/anaconda2/envs/python3.9/lib/python3.9/site-packages/sqlalchemy/engine/reflection.py:412, in Inspector.get_view_names(self, schema)\r\n 404 \"\"\"Return all view names in `schema`.\r\n 405 \r\n 406 :param schema: Optional, retrieve names from a non-default schema.\r\n 407 For special quoting, use :class:`.quoted_name`.\r\n 408 \r\n 409 \"\"\"\r\n 411 with self._operation_context() as conn:\r\n--\u003e 412 return self.dialect.get_view_names(\r\n 413 conn, schema, info_cache=self.info_cache\r\n 414 )\r\n\r\nFile ~/anaconda2/envs/python3.9/lib/python3.9/site-packages/sqlalchemy/engine/interfaces.py:332, in Dialect.get_view_names(self, connection, schema, **kw)\r\n 326 def get_view_names(self, connection, schema=None, **kw):\r\n 327 \"\"\"Return a list of all view names available in the database.\r\n 328 \r\n 329 :param schema: schema name to query, if not the default schema.\r\n 330 \"\"\"\r\n--\u003e 332 raise NotImplementedError()\r\n\r\nNotImplementedError: \r\n```\r\n\r\n**Describe the solution you'd like**\r\nWe can implement `get_view_names`.\r\n\r\n**Describe alternatives you've considered**\r\nN/A\r\n\r\n**Additional context**\r\nI am working on the issue of OpenMetadata.\r\n- https://github.com/open-metadata/OpenMetadata/issues/4221\r\n","author":{"url":"https://github.com/yu-iskw","@type":"Person","name":"yu-iskw"},"datePublished":"2023-01-26T07:57:48.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/303/python-spanner-sqlalchemy/issues/303"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a521b640-8b1b-4e9e-b038-dd59264d3198 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D218:1A1F1B:3B35DAE:51F6199:6A4F4E65 |
| html-safe-nonce | d8b9a56d6f9dd1ca9dfe459ef7b3c3cd0abbb9f87e03c577dec2f188f6eaba15 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMjE4OjFBMUYxQjozQjM1REFFOjUxRjYxOTk6NkE0RjRFNjUiLCJ2aXNpdG9yX2lkIjoiODI0MDc2OTI3ODkyNTU1NzM0OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fbe605a09e9922c06483b81bd0a3146858e6cedf07fac06451e73671e92c3cfe |
| hovercard-subject-tag | issue:1557746637 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/python-spanner-sqlalchemy/303/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6189b982f5a1173d0adf5b651c74716bc72e3746bc576dcf45f19da063854736/googleapis/python-spanner-sqlalchemy/issues/303 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6189b982f5a1173d0adf5b651c74716bc72e3746bc576dcf45f19da063854736/googleapis/python-spanner-sqlalchemy/issues/303 |
| og:image:alt | Is your feature request related to a problem? Please describe. I would like to catalog tables and views of Spanner on OpenMetadata. To do so, I would like to extract metadata of not only tables but... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | yu-iskw |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/python-spanner-sqlalchemy git https://github.com/googleapis/python-spanner-sqlalchemy.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 335511641 |
| octolytics-dimension-repository_nwo | googleapis/python-spanner-sqlalchemy |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 335511641 |
| octolytics-dimension-repository_network_root_nwo | googleapis/python-spanner-sqlalchemy |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4b249b445842943ed31549e027f57a8ade9881ed |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width