René's URL Explorer Experiment


Title: PythonQL3 pattern matching not working · Issue #18 · pythonql/pythonql · GitHub

Open Graph Title: PythonQL3 pattern matching not working · Issue #18 · pythonql/pythonql

X Title: PythonQL3 pattern matching not working · Issue #18 · pythonql/pythonql

Description: Hi there, I've recently discovered PythonQL - Wow! I spent my spare time over the last 2 days to go through the intro and tutorial and have created a python script with all the examples in there. Everything works beautifully except for t...

Open Graph Description: Hi there, I've recently discovered PythonQL - Wow! I spent my spare time over the last 2 days to go through the intro and tutorial and have created a python script with all the examples in there. E...

X Description: Hi there, I've recently discovered PythonQL - Wow! I spent my spare time over the last 2 days to go through the intro and tutorial and have created a python script with all the examples in ther...

Opengraph URL: https://github.com/pythonql/pythonql/issues/18

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PythonQL3 pattern matching not working","articleBody":"Hi there,\r\n\r\nI've recently discovered PythonQL - Wow! I spent my spare time over the last 2 days to go through the intro and tutorial and have created a python script with all the examples in there. Everything works beautifully except for the two pattern matching examples.\r\n\r\nThe sample data is as follows\r\n\r\n```\r\npeople = [ {'first':'John', 'last':'Doe', 'age':30,\r\n             'address' : {'city':'San Jose', 'zipcode':92122}},\r\n           {'first':'Daniela', 'last':'Kleene', 'age':40, \r\n             'address' : {'city':'San Jose', 'street':'Main', 'zipcode':92314}},\r\n           {'first':'Jerry', 'last':'Lee', 'age':50, 'occupation':'Engineer', \r\n             'address' : {'city':'San Jose', 'zipcode':93213}}\r\n]\r\n```\r\n\r\nThe first pattern matching example is as follows:\r\n\r\n```\r\nres = [ select (l, z)\r\n        match {\r\n         \"last\" : as l,\r\n         \"age\" : as a where a \u003e 25,\r\n         \"address\" : {\r\n             \"city\" : \"San Jose\",\r\n             \"zipcode\" : as z\r\n          }\r\n        } as x in people ]\r\n```\r\n\r\nNow this first example works 100%.\r\n\r\nThe second pattern matching example is as follows\r\n\r\n```\r\nres = [  select x\r\n          match {\r\n            \"last\" : as _,\r\n            \"first\" : as _,\r\n            \"age\" : as a where a \u003e 25,\r\n            \"address\" : {\r\n               \"city\" : as _,\r\n               \"zipcode\" : as _\r\n            }\r\n          } as x in people ]\r\n]\r\n```\r\n\r\nThis second pattern matching example has an error in that there appears to be an extra closing square bracket at the end. \r\n\r\nRemoving this bracket is obviously fixes the syntax error. This example is however supposed to return only the first record because it matches exactly - meaning it has all the same fields as the query but this example returns every record - according to the tutorial but it returns all the records (maybe this is the correct behaviour?). \r\n\r\nIf I now add an `occupation` field to the pattern it matches only the record that contains the occupation field. If I add a `street` field to the pattern nothing matches. If I now remove the `occupation` field but leave the `street` field in the pattern it matches the record that has the `street` field.  \r\n\r\nAm I missing something here? Or is the tutorial incorrect?","author":{"url":"https://github.com/erasmusa","@type":"Person","name":"erasmusa"},"datePublished":"2020-04-12T08:34:12.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/18/pythonql/issues/18"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:bd989298-0daa-9376-ab04-3aa90385ff2e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE812:3C2B7:B2B7A:F7B28:6981D0C2
html-safe-noncef046bad26b9d41f0582d5861c9d39ecfd8909228963efd747b3627cecca0885d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODEyOjNDMkI3OkIyQjdBOkY3QjI4OjY5ODFEMEMyIiwidmlzaXRvcl9pZCI6Ijg1NDQ4ODEwNzQwMjk4NDI2MjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacfd41cc24b7019a4a5ffa722a1fe304acee351878356f8d7599df02e779b59872
hovercard-subject-tagissue:598437509
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/pythonql/pythonql/18/issue_layout
twitter:imagehttps://opengraph.githubassets.com/512a999b7cf9e550cd200fd9837bc76390b658eab0dedbe68bc89ddf4358b88a/pythonql/pythonql/issues/18
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/512a999b7cf9e550cd200fd9837bc76390b658eab0dedbe68bc89ddf4358b88a/pythonql/pythonql/issues/18
og:image:altHi there, I've recently discovered PythonQL - Wow! I spent my spare time over the last 2 days to go through the intro and tutorial and have created a python script with all the examples in there. E...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameerasmusa
hostnamegithub.com
expected-hostnamegithub.com
Noneebfdf8d3e0fd17b103f41cc6696d84938694ebebdfecaf11fe00dbe4a9785801
turbo-cache-controlno-preview
go-importgithub.com/pythonql/pythonql git https://github.com/pythonql/pythonql.git
octolytics-dimension-user_id22842849
octolytics-dimension-user_loginpythonql
octolytics-dimension-repository_id58056458
octolytics-dimension-repository_nwopythonql/pythonql
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id58056458
octolytics-dimension-repository_network_root_nwopythonql/pythonql
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
releaseac96edcf00b294dfaa8f1b86d06a198589e60041
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/pythonql/pythonql/issues/18#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpythonql%2Fpythonql%2Fissues%2F18
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%2Fpythonql%2Fpythonql%2Fissues%2F18
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=pythonql%2Fpythonql
Reloadhttps://patch-diff.githubusercontent.com/pythonql/pythonql/issues/18
Reloadhttps://patch-diff.githubusercontent.com/pythonql/pythonql/issues/18
Reloadhttps://patch-diff.githubusercontent.com/pythonql/pythonql/issues/18
pythonql https://patch-diff.githubusercontent.com/pythonql
pythonqlhttps://patch-diff.githubusercontent.com/pythonql/pythonql
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fpythonql%2Fpythonql
Fork 20 https://patch-diff.githubusercontent.com/login?return_to=%2Fpythonql%2Fpythonql
Star 245 https://patch-diff.githubusercontent.com/login?return_to=%2Fpythonql%2Fpythonql
Code https://patch-diff.githubusercontent.com/pythonql/pythonql
Issues 7 https://patch-diff.githubusercontent.com/pythonql/pythonql/issues
Pull requests 0 https://patch-diff.githubusercontent.com/pythonql/pythonql/pulls
Actions https://patch-diff.githubusercontent.com/pythonql/pythonql/actions
Projects 0 https://patch-diff.githubusercontent.com/pythonql/pythonql/projects
Wiki https://patch-diff.githubusercontent.com/pythonql/pythonql/wiki
Security 0 https://patch-diff.githubusercontent.com/pythonql/pythonql/security
Insights https://patch-diff.githubusercontent.com/pythonql/pythonql/pulse
Code https://patch-diff.githubusercontent.com/pythonql/pythonql
Issues https://patch-diff.githubusercontent.com/pythonql/pythonql/issues
Pull requests https://patch-diff.githubusercontent.com/pythonql/pythonql/pulls
Actions https://patch-diff.githubusercontent.com/pythonql/pythonql/actions
Projects https://patch-diff.githubusercontent.com/pythonql/pythonql/projects
Wiki https://patch-diff.githubusercontent.com/pythonql/pythonql/wiki
Security https://patch-diff.githubusercontent.com/pythonql/pythonql/security
Insights https://patch-diff.githubusercontent.com/pythonql/pythonql/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/pythonql/pythonql/issues/18
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/pythonql/pythonql/issues/18
PythonQL3 pattern matching not workinghttps://patch-diff.githubusercontent.com/pythonql/pythonql/issues/18#top
https://github.com/erasmusa
https://github.com/erasmusa
erasmusahttps://github.com/erasmusa
on Apr 12, 2020https://github.com/pythonql/pythonql/issues/18#issue-598437509
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.