René's URL Explorer Experiment


Title: SQL: Error when comparing two empty strings · Issue #1297 · ArcadeData/arcadedb · GitHub

Open Graph Title: SQL: Error when comparing two empty strings · Issue #1297 · ArcadeData/arcadedb

X Title: SQL: Error when comparing two empty strings · Issue #1297 · ArcadeData/arcadedb

Description: ArcadeDB Version: ArcadeDB Server v23.10.1 (build 47e2c315678e3a503e5c9b4e615186bed925ac7d/1698807954815/main) OS and JDK Version: Running on Linux 6.4.16-linuxkit - OpenJDK 64-Bit Server VM 11.0.21 (Temurin-11.0.21+9) In 23.10.1 (via do...

Open Graph Description: ArcadeDB Version: ArcadeDB Server v23.10.1 (build 47e2c315678e3a503e5c9b4e615186bed925ac7d/1698807954815/main) OS and JDK Version: Running on Linux 6.4.16-linuxkit - OpenJDK 64-Bit Server VM 11.0.2...

X Description: ArcadeDB Version: ArcadeDB Server v23.10.1 (build 47e2c315678e3a503e5c9b4e615186bed925ac7d/1698807954815/main) OS and JDK Version: Running on Linux 6.4.16-linuxkit - OpenJDK 64-Bit Server VM 11.0.2...

Opengraph URL: https://github.com/ArcadeData/arcadedb/issues/1297

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SQL: Error when comparing two empty strings","articleBody":"### ArcadeDB Version:\r\n`ArcadeDB Server v23.10.1 (build 47e2c315678e3a503e5c9b4e615186bed925ac7d/1698807954815/main)`\r\n### OS and JDK Version:\r\n`Running on Linux 6.4.16-linuxkit - OpenJDK 64-Bit Server VM 11.0.21 (Temurin-11.0.21+9)`\r\n\r\nIn `23.10.1` (via docker hub container) the following error appears when comparing an empty string against an empty string.\r\nParticularly, this happens only if both sides in a comparison are the empty string.\r\nHowever, this error is strangely not happening with the current repo head.\r\n\r\nMaybe the case of two empty string needs to be handled here https://github.com/ArcadeData/arcadedb/blob/main/engine/src/main/java/com/arcadedb/serializer/BinaryComparator.java#L403 ?\r\n\r\n### Expected behavior\r\nCorrect string comparisons with empty strings.\r\n\r\n### Actual behavior\r\n\r\n\u003cdetails\u003e \u003csummary\u003e\u003ccode\u003eInternal error Index -1 out of bounds for length 0\u003c/code\u003e\u003c/summary\u003e\r\n\r\n```\r\nError on command execution (PostCommandHandler)\r\njava.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 0\r\n       at com.arcadedb.serializer.BinaryComparator.equalsBytes(BinaryComparator.java:410)\r\n       at com.arcadedb.serializer.BinaryComparator.equalsString(BinaryComparator.java:399)\r\n       at com.arcadedb.serializer.BinaryComparator.equals(BinaryComparator.java:382)\r\n       at com.arcadedb.query.sql.executor.QueryOperatorEquals.equals(QueryOperatorEquals.java:39)\r\n       at com.arcadedb.query.sql.parser.EqualsCompareOperator.execute(EqualsCompareOperator.java:35)\r\n       at com.arcadedb.query.sql.parser.BinaryCondition.evaluate(BinaryCondition.java:49)\r\n       at com.arcadedb.query.sql.parser.NotBlock.evaluate(NotBlock.java:56)\r\n       at com.arcadedb.query.sql.parser.AndBlock.evaluate(AndBlock.java:70)\r\n       at com.arcadedb.query.sql.parser.OrBlock.evaluate(OrBlock.java:58)\r\n       at com.arcadedb.query.sql.parser.WhereClause.matchesFilters(WhereClause.java:56)\r\n       at com.arcadedb.query.sql.parser.Expression.execute(Expression.java:89)\r\n       at com.arcadedb.query.sql.parser.ProjectionItem.execute(ProjectionItem.java:137)\r\n       at com.arcadedb.query.sql.parser.Projection.calculateSingle(Projection.java:129)\r\n       at com.arcadedb.query.sql.executor.ProjectionCalculationStep.calculateProjections(ProjectionCalculationStep.java:66)\r\n       at com.arcadedb.query.sql.executor.ProjectionCalculationStep$1.next(ProjectionCalculationStep.java:51)\r\n       at com.arcadedb.query.sql.parser.LocalResultSet.next(LocalResultSet.java:72)\r\n       at com.arcadedb.server.http.handler.AbstractQueryHandler.serializeResultSet(AbstractQueryHandler.java:98)\r\n       at com.arcadedb.server.http.handler.PostCommandHandler.execute(PostCommandHandler.java:100)\r\n       at com.arcadedb.server.http.handler.DatabaseAbstractHandler.execute(DatabaseAbstractHandler.java:99)\r\n       at com.arcadedb.server.http.handler.AbstractServerHttpHandler.handleRequest(AbstractServerHttpHandler.java:126)\r\n       at io.undertow.server.Connectors.executeRootHandler(Connectors.java:393)\r\n       at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:859)\r\n       at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)\r\n       at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2513)\r\n       at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1538)\r\n       at org.xnio.XnioWorker$WorkerThreadFactory$1$1.run(XnioWorker.java:1282)\r\n       at java.base/java.lang.Thread.run(Thread.java:829)\r\n\r\n```\r\n\u003c/details\u003e\r\n\r\n### Steps to reproduce\r\n\r\nMinimal example:\r\n```\r\nSELECT ('' != '')\r\n```\r\n\r\nGeneral example:\r\n```\r\nCREATE DOCUMENT TYPE doc;\r\nCREATE PROPERTY doc.str;\r\nINSERT INTO doc SET str = '';\r\nSELECT str FROM doc WHERE str != ''\r\n```\r\n","author":{"url":"https://github.com/gramian","@type":"Person","name":"gramian"},"datePublished":"2023-11-02T19:13:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/1297/arcadedb/issues/1297"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:83dac599-667b-7b92-5473-056d49071b52
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id92AE:21BA3B:3224438:42EC748:6A654204
html-safe-nonce4f640b8bc7eb4a4a3424046dac5f7eae5f5861cd234e0a7a694c1d719d141614
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MkFFOjIxQkEzQjozMjI0NDM4OjQyRUM3NDg6NkE2NTQyMDQiLCJ2aXNpdG9yX2lkIjoiMzAxNDYwNjQ3NzA1NDAwMTY2OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacee4bc2c732231ff0b801e422f06decbde398aedaf42f878c96e64c2bd9a9d90f
hovercard-subject-tagissue:1974889099
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/ArcadeData/arcadedb/1297/issue_layout
twitter:imagehttps://opengraph.githubassets.com/7e629cbe792c68bcacd73e537ed51d727afb280a9ccc4cb11c807b9f1d1eb29a/ArcadeData/arcadedb/issues/1297
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7e629cbe792c68bcacd73e537ed51d727afb280a9ccc4cb11c807b9f1d1eb29a/ArcadeData/arcadedb/issues/1297
og:image:altArcadeDB Version: ArcadeDB Server v23.10.1 (build 47e2c315678e3a503e5c9b4e615186bed925ac7d/1698807954815/main) OS and JDK Version: Running on Linux 6.4.16-linuxkit - OpenJDK 64-Bit Server VM 11.0.2...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegramian
hostnamegithub.com
expected-hostnamegithub.com
None52c76df668885aaff23b50bdca1fa1ea44ac9c1553e888ebc70ff1e4daa4625b
turbo-cache-controlno-preview
go-importgithub.com/ArcadeData/arcadedb git https://github.com/ArcadeData/arcadedb.git
octolytics-dimension-user_id32255470
octolytics-dimension-user_loginArcadeData
octolytics-dimension-repository_id396867188
octolytics-dimension-repository_nwoArcadeData/arcadedb
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id396867188
octolytics-dimension-repository_network_root_nwoArcadeData/arcadedb
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
release309153364422b3c499922d1a2a6404910a58ed8e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/ArcadeData/arcadedb/issues/1297#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FArcadeData%2Farcadedb%2Fissues%2F1297
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
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
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%2FArcadeData%2Farcadedb%2Fissues%2F1297
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=ArcadeData%2Farcadedb
Reloadhttps://github.com/ArcadeData/arcadedb/issues/1297
Reloadhttps://github.com/ArcadeData/arcadedb/issues/1297
Reloadhttps://github.com/ArcadeData/arcadedb/issues/1297
Please reload this pagehttps://github.com/ArcadeData/arcadedb/issues/1297
ArcadeData https://github.com/ArcadeData
arcadedbhttps://github.com/ArcadeData/arcadedb
Please reload this pagehttps://github.com/ArcadeData/arcadedb/issues/1297
Notifications https://github.com/login?return_to=%2FArcadeData%2Farcadedb
Fork 124 https://github.com/login?return_to=%2FArcadeData%2Farcadedb
Star 1k https://github.com/login?return_to=%2FArcadeData%2Farcadedb
Code https://github.com/ArcadeData/arcadedb
Issues 55 https://github.com/ArcadeData/arcadedb/issues
Pull requests 24 https://github.com/ArcadeData/arcadedb/pulls
Discussions https://github.com/ArcadeData/arcadedb/discussions
Actions https://github.com/ArcadeData/arcadedb/actions
Security and quality 12 https://github.com/ArcadeData/arcadedb/security
Insights https://github.com/ArcadeData/arcadedb/pulse
Code https://github.com/ArcadeData/arcadedb
Issues https://github.com/ArcadeData/arcadedb/issues
Pull requests https://github.com/ArcadeData/arcadedb/pulls
Discussions https://github.com/ArcadeData/arcadedb/discussions
Actions https://github.com/ArcadeData/arcadedb/actions
Security and quality https://github.com/ArcadeData/arcadedb/security
Insights https://github.com/ArcadeData/arcadedb/pulse
SQL: Error when comparing two empty stringshttps://github.com/ArcadeData/arcadedb/issues/1297#top
https://github.com/gramian
23.11.1https://github.com/ArcadeData/arcadedb/milestone/26
https://github.com/gramian
gramianhttps://github.com/gramian
on Nov 2, 2023https://github.com/ArcadeData/arcadedb/issues/1297#issue-1974889099
https://github.com/ArcadeData/arcadedb/blob/main/engine/src/main/java/com/arcadedb/serializer/BinaryComparator.java#L403https://github.com/ArcadeData/arcadedb/blob/main/engine/src/main/java/com/arcadedb/serializer/BinaryComparator.java#L403
gramianhttps://github.com/gramian
23.11.1https://github.com/ArcadeData/arcadedb/milestone/26
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.