René's URL Explorer Experiment


Title: Index on a table containing columns with no sort order fails while reflecting the table · Issue #399 · googleapis/python-spanner-sqlalchemy · GitHub

Open Graph Title: Index on a table containing columns with no sort order fails while reflecting the table · Issue #399 · googleapis/python-spanner-sqlalchemy

X Title: Index on a table containing columns with no sort order fails while reflecting the table · Issue #399 · googleapis/python-spanner-sqlalchemy

Description: Environment details Programming language: Python OS: debian (can be reproduce on any OS) Language runtime version: Python 3.11.7 Package version: sqlalchemy-spanner==1.7.0, SQLAlchemy==1.4.49 Steps to reproduce Install Packages: pip inst...

Open Graph Description: Environment details Programming language: Python OS: debian (can be reproduce on any OS) Language runtime version: Python 3.11.7 Package version: sqlalchemy-spanner==1.7.0, SQLAlchemy==1.4.49 Steps...

X Description: Environment details Programming language: Python OS: debian (can be reproduce on any OS) Language runtime version: Python 3.11.7 Package version: sqlalchemy-spanner==1.7.0, SQLAlchemy==1.4.49 Steps...

Opengraph URL: https://github.com/googleapis/python-spanner-sqlalchemy/issues/399

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Index on a table containing columns with no sort order fails while reflecting the table","articleBody":"#### Environment details\r\n\r\n  - Programming language: Python\r\n  - OS: debian (can be reproduce on any OS)\r\n  - Language runtime version: Python 3.11.7\r\n  - Package version:  sqlalchemy-spanner==1.7.0, SQLAlchemy==1.4.49\r\n\r\n#### Steps to reproduce\r\n\r\n  1. Install Packages:\r\n\r\n```\r\n pip install SQLAlchemy==1.4.49 sqlalchemy-spanner==1.7.0\r\n\r\n```\r\n\r\n  2. Setup Engine:\r\n\r\n```\r\nfrom sqlalchemy import create_engine\r\n\r\n# Replace the following with your actual database connection string\r\nDATABASE_URL = \"spanner+spanner:///projects/YOUR_PROJECT_ID/instances/YOUR_INSTANCE_ID/databases/YOUR_DATABASE_ID\"\r\nengine = create_engine(DATABASE_URL)\r\n```\r\n\r\n  3. Setup Database:\r\n\r\n```\r\n# SQL for creating the table\r\ncreate_table_sql = \"\"\"\r\nCREATE TABLE clicks (\r\n  id INT64 NOT NULL,\r\n  date DATE NOT NULL,\r\n  url_hash STRING(32) NOT NULL,\r\n  url STRING(MAX) NOT NULL,\r\n) PRIMARY KEY(id, date DESC, url_hash);\r\n\"\"\"\r\n\r\n# SQL for creating the index\r\ncreate_index_sql = \"\"\"\r\nCREATE INDEX idx_on_clicks ON clicks(id, date DESC, url_hash) STORING (url);\r\n\"\"\"\r\n\r\n# Execute the SQL commands\r\nwith engine.connect() as connection:\r\n    connection.execute(create_table_sql)\r\n    connection.execute(create_index_sql)\r\n\r\n```\r\n\r\n  4. Reflect Database:\r\n\r\n```\r\nfrom sqlalchemy import MetaData, inspect\r\n\r\ninspector = inspect(engine)\r\nmeta = MetaData(bind=engine)\r\nMetaData.reflect(meta, views=True)\r\n```\r\n\r\n  5. Exception from Step 4:\r\n\r\n```\r\n  File \"/usr/local/lib/python3.11/site-packages/sqlalchemy/sql/schema.py\", line 614, in __new__\r\n    table._init(name, metadata, *args, **kw)\r\n  File \"/usr/local/lib/python3.11/site-packages/sqlalchemy/sql/schema.py\", line 689, in _init\r\n    self._autoload(\r\n  File \"/usr/local/lib/python3.11/site-packages/sqlalchemy/sql/schema.py\", line 724, in _autoload\r\n    conn_insp.reflect_table(\r\n  File \"/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/reflection.py\", line 807, in reflect_table\r\n    self._reflect_indexes(\r\n  File \"/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/reflection.py\", line 1071, in _reflect_indexes\r\n    if k in c_sorting:\r\n       ^^^^^^^^^^^^^^\r\nTypeError: argument of type 'NoneType' is not iterable\r\n```\r\n\r\n**Note:** SQLAlchemy-2.0.30 also has the same issue.","author":{"url":"https://github.com/mmahmed","@type":"Person","name":"mmahmed"},"datePublished":"2024-06-11T17:21:03.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/399/python-spanner-sqlalchemy/issues/399"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:f4cf84dc-fcbf-035c-ef5a-f14d158692ec
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9038:2E7285:2619245:3422AE2:6A4ED7EA
html-safe-nonce32bf7266a04ef4d98af0dc43ca39470dd957ef71db2535fd759bc6adef389d54
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDM4OjJFNzI4NToyNjE5MjQ1OjM0MjJBRTI6NkE0RUQ3RUEiLCJ2aXNpdG9yX2lkIjoiNzM3Nzg0Mzg3MTY1NTMxOTUzMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaca7af5ee61ab65c696eaaad00e5ae2cd228ba98dfb06c2b69cb1da957a2d431fb
hovercard-subject-tagissue:2346924992
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/python-spanner-sqlalchemy/399/issue_layout
twitter:imagehttps://opengraph.githubassets.com/1d190b16aae207592d8c19e578a718ff0a7acd269a6e220b0209f77a54b1d22a/googleapis/python-spanner-sqlalchemy/issues/399
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1d190b16aae207592d8c19e578a718ff0a7acd269a6e220b0209f77a54b1d22a/googleapis/python-spanner-sqlalchemy/issues/399
og:image:altEnvironment details Programming language: Python OS: debian (can be reproduce on any OS) Language runtime version: Python 3.11.7 Package version: sqlalchemy-spanner==1.7.0, SQLAlchemy==1.4.49 Steps...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemmahmed
hostnamegithub.com
expected-hostnamegithub.com
None41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c
turbo-cache-controlno-preview
go-importgithub.com/googleapis/python-spanner-sqlalchemy git https://github.com/googleapis/python-spanner-sqlalchemy.git
octolytics-dimension-user_id16785467
octolytics-dimension-user_logingoogleapis
octolytics-dimension-repository_id335511641
octolytics-dimension-repository_nwogoogleapis/python-spanner-sqlalchemy
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id335511641
octolytics-dimension-repository_network_root_nwogoogleapis/python-spanner-sqlalchemy
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasec37fe3e3f5f306900bd5b6bee97463f66c938b2c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/googleapis/python-spanner-sqlalchemy/issues/399#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fpython-spanner-sqlalchemy%2Fissues%2F399
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fpython-spanner-sqlalchemy%2Fissues%2F399
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=googleapis%2Fpython-spanner-sqlalchemy
Reloadhttps://github.com/googleapis/python-spanner-sqlalchemy/issues/399
Reloadhttps://github.com/googleapis/python-spanner-sqlalchemy/issues/399
Reloadhttps://github.com/googleapis/python-spanner-sqlalchemy/issues/399
Please reload this pagehttps://github.com/googleapis/python-spanner-sqlalchemy/issues/399
googleapis https://github.com/googleapis
python-spanner-sqlalchemyhttps://github.com/googleapis/python-spanner-sqlalchemy
Notifications https://github.com/login?return_to=%2Fgoogleapis%2Fpython-spanner-sqlalchemy
Fork 35 https://github.com/login?return_to=%2Fgoogleapis%2Fpython-spanner-sqlalchemy
Star 53 https://github.com/login?return_to=%2Fgoogleapis%2Fpython-spanner-sqlalchemy
Code https://github.com/googleapis/python-spanner-sqlalchemy
Issues 1 https://github.com/googleapis/python-spanner-sqlalchemy/issues
Pull requests 0 https://github.com/googleapis/python-spanner-sqlalchemy/pulls
Actions https://github.com/googleapis/python-spanner-sqlalchemy/actions
Projects https://github.com/googleapis/python-spanner-sqlalchemy/projects
Security and quality 0 https://github.com/googleapis/python-spanner-sqlalchemy/security
Insights https://github.com/googleapis/python-spanner-sqlalchemy/pulse
Code https://github.com/googleapis/python-spanner-sqlalchemy
Issues https://github.com/googleapis/python-spanner-sqlalchemy/issues
Pull requests https://github.com/googleapis/python-spanner-sqlalchemy/pulls
Actions https://github.com/googleapis/python-spanner-sqlalchemy/actions
Projects https://github.com/googleapis/python-spanner-sqlalchemy/projects
Security and quality https://github.com/googleapis/python-spanner-sqlalchemy/security
Insights https://github.com/googleapis/python-spanner-sqlalchemy/pulse
#485https://github.com/googleapis/python-spanner-sqlalchemy/pull/485
Index on a table containing columns with no sort order fails while reflecting the tablehttps://github.com/googleapis/python-spanner-sqlalchemy/issues/399#top
#485https://github.com/googleapis/python-spanner-sqlalchemy/pull/485
https://github.com/olavloite
api: spannerIssues related to the googleapis/python-spanner-sqlalchemy API.https://github.com/googleapis/python-spanner-sqlalchemy/issues?q=state%3Aopen%20label%3A%22api%3A%20spanner%22
priority: p2Moderately-important priority. Fix may not be included in next release.https://github.com/googleapis/python-spanner-sqlalchemy/issues?q=state%3Aopen%20label%3A%22priority%3A%20p2%22
type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.https://github.com/googleapis/python-spanner-sqlalchemy/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%22
https://github.com/mmahmed
mmahmedhttps://github.com/mmahmed
on Jun 11, 2024https://github.com/googleapis/python-spanner-sqlalchemy/issues/399#issue-2346924992
olavloitehttps://github.com/olavloite
api: spannerIssues related to the googleapis/python-spanner-sqlalchemy API.https://github.com/googleapis/python-spanner-sqlalchemy/issues?q=state%3Aopen%20label%3A%22api%3A%20spanner%22
priority: p2Moderately-important priority. Fix may not be included in next release.https://github.com/googleapis/python-spanner-sqlalchemy/issues?q=state%3Aopen%20label%3A%22priority%3A%20p2%22
type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.https://github.com/googleapis/python-spanner-sqlalchemy/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.