René's URL Explorer Experiment


Title: [BUG] Tables with string columns defined manually not using `STRING(MAX)`, ie `STRING(1024)` will fail · Issue #165 · google/python-spanner-orm · GitHub

Open Graph Title: [BUG] Tables with string columns defined manually not using `STRING(MAX)`, ie `STRING(1024)` will fail · Issue #165 · google/python-spanner-orm

X Title: [BUG] Tables with string columns defined manually not using `STRING(MAX)`, ie `STRING(1024)` will fail · Issue #165 · google/python-spanner-orm

Description: If you create a table directly via sql command and then try to interact with that same db with spanner_orm then it will fail. CREATE TABLE manuallyCreatedTable( id INT64 NOT NULL, ProblematicColumn STRING(1024), ) PRIMARY KEY(id); And yo...

Open Graph Description: If you create a table directly via sql command and then try to interact with that same db with spanner_orm then it will fail. CREATE TABLE manuallyCreatedTable( id INT64 NOT NULL, ProblematicColumn...

X Description: If you create a table directly via sql command and then try to interact with that same db with spanner_orm then it will fail. CREATE TABLE manuallyCreatedTable( id INT64 NOT NULL, ProblematicColumn...

Opengraph URL: https://github.com/google/python-spanner-orm/issues/165

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG] Tables with string columns defined manually not using `STRING(MAX)`, ie `STRING(1024)` will fail","articleBody":"If you create a table directly via sql command and then try to interact with that same db with spanner_orm then it will fail.\r\n\r\n```\r\nCREATE TABLE manuallyCreatedTable(\r\n  id INT64 NOT NULL,\r\n  ProblematicColumn STRING(1024),\r\n) PRIMARY KEY(id);\r\n```\r\n\r\nAnd you create any table.  You will get an error like:\r\n\r\n```\r\n  /usr/local/bin/spanner-orm(8)\u003cmodule\u003e()\r\n-\u003e sys.exit(main())\r\n  /usr/local/lib/python3.9/site-packages/spanner_orm/admin/scripts.py(78)main()\r\n-\u003e args.execute(args)\r\n  /usr/local/lib/python3.9/site-packages/spanner_orm/admin/scripts.py(33)migrate()\r\n-\u003e executor.migrate(args.name)\r\n  /usr/local/lib/python3.9/site-packages/spanner_orm/admin/migration_executor.py(63)migrate()\r\n-\u003e self._validate_migrations()\r\n  /usr/local/lib/python3.9/site-packages/spanner_orm/admin/migration_executor.py(184)_validate_migrations()\r\n-\u003e if (self.migrated(migration_.migration_id) and\r\n  /usr/local/lib/python3.9/site-packages/spanner_orm/admin/migration_executor.py(46)migrated()\r\n-\u003e return self._migration_status().get(migration_id, False)\r\n  /usr/local/lib/python3.9/site-packages/spanner_orm/admin/migration_executor.py(150)_migration_status()\r\n-\u003e model_from_db = metadata.SpannerMetadata.model(\r\n  /usr/local/lib/python3.9/site-packages/spanner_orm/admin/metadata.py(68)model()\r\n-\u003e return cls.models().get(table_name)\r\n  /usr/local/lib/python3.9/site-packages/spanner_orm/admin/metadata.py(43)models()\r\n-\u003e tables = cls.tables()\r\n  /usr/local/lib/python3.9/site-packages/spanner_orm/admin/metadata.py(80)tables()\r\n-\u003e column_row.field_type(), nullable=column_row.nullable())\r\n\u003e /usr/local/lib/python3.9/site-packages/spanner_orm/admin/column.py(45)field_type()\r\n-\u003e raise error.SpannerError('No corresponding Type for {}'.format(\r\n(Pdb) up\r\n\u003e /usr/local/lib/python3.9/site-packages/spanner_orm/admin/metadata.py(80)tables()\r\n-\u003e column_row.field_type(), nullable=column_row.nullable())\r\n(Pdb) column_row.field_type()\r\n*** spanner_orm.error.SpannerError: No corresponding Type for STRING(1024)`\r\n```\r\n\r\nWORKAROUND: You will need to either set `ProblematicColumn ` to `STRING(MAX)` or delete that table.\r\n\r\nLeaving this here for future intrepid souls.","author":{"url":"https://github.com/mox-bot","@type":"Person","name":"mox-bot"},"datePublished":"2021-10-01T20:30:11.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/165/python-spanner-orm/issues/165"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:f591fe20-9f80-ec9d-106a-1e5d8cec4539
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC364:177280:16A708A:1DEF26F:697C1FB5
html-safe-nonce45a48448a211d65f97735f57aaeb083fec9ac550fd96578af64e364be7d2edf3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMzY0OjE3NzI4MDoxNkE3MDhBOjFERUYyNkY6Njk3QzFGQjUiLCJ2aXNpdG9yX2lkIjoiNDYzMzEwMDU4MTEwNjA5ODEwMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaca7c61b71c2b315f1b6be620ceccafa18eb5df0d6b1ddea7e3788c795f472381e
hovercard-subject-tagissue:1013737450
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/google/python-spanner-orm/165/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d0a0bf45d830997716de3a5dd1c8dc621d8a2fdec42f4d4527ca4e8d52feb15e/google/python-spanner-orm/issues/165
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d0a0bf45d830997716de3a5dd1c8dc621d8a2fdec42f4d4527ca4e8d52feb15e/google/python-spanner-orm/issues/165
og:image:altIf you create a table directly via sql command and then try to interact with that same db with spanner_orm then it will fail. CREATE TABLE manuallyCreatedTable( id INT64 NOT NULL, ProblematicColumn...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemox-bot
hostnamegithub.com
expected-hostnamegithub.com
Noneda4f0ee56809799586f8ee546b27f94fe9b5893edfbf87732e82be45be013b52
turbo-cache-controlno-preview
go-importgithub.com/google/python-spanner-orm git https://github.com/google/python-spanner-orm.git
octolytics-dimension-user_id1342004
octolytics-dimension-user_logingoogle
octolytics-dimension-repository_id155757264
octolytics-dimension-repository_nwogoogle/python-spanner-orm
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id155757264
octolytics-dimension-repository_network_root_nwogoogle/python-spanner-orm
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
release787d8d274e314f52ce6d846c7581f9476d8dc736
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/google/python-spanner-orm/issues/165#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogle%2Fpython-spanner-orm%2Fissues%2F165
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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/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://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogle%2Fpython-spanner-orm%2Fissues%2F165
Sign up https://patch-diff.githubusercontent.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=google%2Fpython-spanner-orm
Reloadhttps://patch-diff.githubusercontent.com/google/python-spanner-orm/issues/165
Reloadhttps://patch-diff.githubusercontent.com/google/python-spanner-orm/issues/165
Reloadhttps://patch-diff.githubusercontent.com/google/python-spanner-orm/issues/165
google https://patch-diff.githubusercontent.com/google
python-spanner-ormhttps://patch-diff.githubusercontent.com/google/python-spanner-orm
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fgoogle%2Fpython-spanner-orm
Fork 14 https://patch-diff.githubusercontent.com/login?return_to=%2Fgoogle%2Fpython-spanner-orm
Star 40 https://patch-diff.githubusercontent.com/login?return_to=%2Fgoogle%2Fpython-spanner-orm
Code https://patch-diff.githubusercontent.com/google/python-spanner-orm
Issues 17 https://patch-diff.githubusercontent.com/google/python-spanner-orm/issues
Pull requests 7 https://patch-diff.githubusercontent.com/google/python-spanner-orm/pulls
Actions https://patch-diff.githubusercontent.com/google/python-spanner-orm/actions
Projects 0 https://patch-diff.githubusercontent.com/google/python-spanner-orm/projects
Security 0 https://patch-diff.githubusercontent.com/google/python-spanner-orm/security
Insights https://patch-diff.githubusercontent.com/google/python-spanner-orm/pulse
Code https://patch-diff.githubusercontent.com/google/python-spanner-orm
Issues https://patch-diff.githubusercontent.com/google/python-spanner-orm/issues
Pull requests https://patch-diff.githubusercontent.com/google/python-spanner-orm/pulls
Actions https://patch-diff.githubusercontent.com/google/python-spanner-orm/actions
Projects https://patch-diff.githubusercontent.com/google/python-spanner-orm/projects
Security https://patch-diff.githubusercontent.com/google/python-spanner-orm/security
Insights https://patch-diff.githubusercontent.com/google/python-spanner-orm/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/google/python-spanner-orm/issues/165
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/google/python-spanner-orm/issues/165
[BUG] Tables with string columns defined manually not using STRING(MAX), ie STRING(1024) will failhttps://patch-diff.githubusercontent.com/google/python-spanner-orm/issues/165#top
https://github.com/mox-bot
https://github.com/mox-bot
mox-bothttps://github.com/mox-bot
on Oct 1, 2021https://github.com/google/python-spanner-orm/issues/165#issue-1013737450
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.