René's URL Explorer Experiment


Title: fix: table comparsion query for date type column by Aries0d0f · Pull Request #4649 · simstudioai/sim · GitHub

Open Graph Title: fix: table comparsion query for date type column by Aries0d0f · Pull Request #4649 · simstudioai/sim

X Title: fix: table comparsion query for date type column by Aries0d0f · Pull Request #4649 · simstudioai/sim

Description: Summary Fix broken date/timestamp comparisons in the table filter query builder. buildComparisonClause always cast comparison values with ::numeric, so filters like { createdAt: { $gte: '2024-01-01' } } on a date-typed column produced invalid SQL and returned no results. The fix threads column type metadata through the filter pipeline so date columns use ::timestamp instead. Fixes #(issue) Type of Change Bug fix Testing Unit tests in apps/sim/lib/table/__tests__/sql.test.ts under the new date column type suite: $gt, $gte, $lt, $lte with a date column — asserts ::timestamp is used and ::numeric is absent Combined date range ($gte + $lte on the same field) Date column inside $and — asserts column type propagates through logical operators Regression guard: number column still produces ::numeric, not ::timestamp Also verified that this fix works by manually build image. Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA) Screenshots/Videos N/A — no UI changes.

Open Graph Description: Summary Fix broken date/timestamp comparisons in the table filter query builder. buildComparisonClause always cast comparison values with ::numeric, so filters like { createdAt: { $gte: '2024-0...

X Description: Summary Fix broken date/timestamp comparisons in the table filter query builder. buildComparisonClause always cast comparison values with ::numeric, so filters like { createdAt: { $gte: '20...

Opengraph URL: https://github.com/simstudioai/sim/pull/4649

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:c690a865-9527-cebf-0fa5-e01700f3060a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id80A8:26BE6B:155E468:1D4A0DF:6AFB79E6
html-safe-nonce0054271bac54f2376cb7545b45efb80dd29585a1502372acab5823c2c5f50565
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MEE4OjI2QkU2QjoxNTVFNDY4OjFENEEwREY6NkFGQjc5RTYiLCJ2aXNpdG9yX2lkIjoiMTgyMDkxMzM4OTA4MTk1MDY5NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac4b327875f2daa3ffde49beba97a9f4d02012b82bf8d1d295578a515cb3defa81
hovercard-subject-tagpull_request:3701469395
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/4649/files
twitter:imagehttps://avatars.githubusercontent.com/u/14278162?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/14278162?s=400&v=4
og:image:altSummary Fix broken date/timestamp comparisons in the table filter query builder. buildComparisonClause always cast comparison values with ::numeric, so filters like { createdAt: { $gte: '2024-0...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None0e29e7974fdda2feeaf5c891efd4b23b0734b23480232b62c7bdef13f40b5b48
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/simstudioai/sim git https://github.com/simstudioai/sim.git
octolytics-dimension-user_id199344406
octolytics-dimension-user_loginsimstudioai
octolytics-dimension-repository_id912559512
octolytics-dimension-repository_nwosimstudioai/sim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id912559512
octolytics-dimension-repository_network_root_nwosimstudioai/sim
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release2e8872b770cc4d5d0cc1f2026afab747a268e2ce
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/4649/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F4649%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F4649%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/4649/files
Reloadhttps://github.com/simstudioai/sim/pull/4649/files
Reloadhttps://github.com/simstudioai/sim/pull/4649/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests202 (202)https://github.com/simstudioai/sim/pulls
Actionshttps://github.com/simstudioai/sim/actions
Projectshttps://github.com/simstudioai/sim/projects
Security and qualityhttps://github.com/simstudioai/sim/security
Insightshttps://github.com/simstudioai/sim/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
Aries0d0fhttps://github.com/Aries0d0f
simstudioai:staginghttps://github.com/simstudioai/sim/tree/staging
Aries0d0f:fix/table-comparsion-query-for-date-type-columnhttps://github.com/Aries0d0f/sim/tree/fix/table-comparsion-query-for-date-type-column
Conversation 8 https://github.com/simstudioai/sim/pull/4649
Commits 4 https://github.com/simstudioai/sim/pull/4649/commits
Checks 3 https://github.com/simstudioai/sim/pull/4649/checks
Files changed https://github.com/simstudioai/sim/pull/4649/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/4649/files
fix: table comparsion query for date type column https://github.com/simstudioai/sim/pull/4649/files#top
Show all changes 4 commits https://github.com/simstudioai/sim/pull/4649/files
d2bb947 fix: broken date/timestamp comparisons in table filter Aries0d0f May 18, 2026 https://github.com/simstudioai/sim/pull/4649/commits/d2bb947ff83525b79ac291514919c99fabe7ccfa
f4f1f5e test: Update test for verify date column type handling. Aries0d0f May 18, 2026 https://github.com/simstudioai/sim/pull/4649/commits/f4f1f5ec4f6526319b178abbb0d4cafd66c95d84
baf6585 fix: wire schema columns through all buildFilterClause call sites Aries0d0f May 18, 2026 https://github.com/simstudioai/sim/pull/4649/commits/baf65855771dd773f3001cd76299ad2b284aaca0
daa1047 fix: pass schema columns to buildSortClause in queryRows Aries0d0f May 18, 2026 https://github.com/simstudioai/sim/pull/4649/commits/daa10471c8097e0a6b4b7869b27764aa6baf83a2
Clear filters https://github.com/simstudioai/sim/pull/4649/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/4649/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/4649/files
route.ts https://github.com/simstudioai/sim/pull/4649/files#diff-1d524d6cc0249dc92450d77e6a2572ddeebca5658f48b15a06026fefe7c8713e
route.ts https://github.com/simstudioai/sim/pull/4649/files#diff-66da8dda9c2be82f25e925ab86c5165605398d122a0aa192cd7665b2819bb067
user-table.ts https://github.com/simstudioai/sim/pull/4649/files#diff-f226f84ebf59d60c85e117fec4b44d258fed6a0a424dc27695e921ceee6a1d41
sql.test.ts https://github.com/simstudioai/sim/pull/4649/files#diff-3fe61c7ca54977c5c4da074803b43fe6e2f81216aedc0e941bbf887daf3a64ed
service.ts https://github.com/simstudioai/sim/pull/4649/files#diff-691e9b1dc59be0015a1be5ea6189899b241d4e979a8b40e088dd7d722cfaadb6
sql.ts https://github.com/simstudioai/sim/pull/4649/files#diff-6bdc8e3314777d023d081101b83c0458072aef721da07cf8b8881fd5d0fab5b3
types.ts https://github.com/simstudioai/sim/pull/4649/files#diff-d1e7779b43ae63cc518e46dc1391df909007ee5cd0f9ee4c920688b1111e2cf1
apps/sim/app/api/table/[tableId]/rows/route.tshttps://github.com/simstudioai/sim/pull/4649/files#diff-1d524d6cc0249dc92450d77e6a2572ddeebca5658f48b15a06026fefe7c8713e
View file https://github.com/Aries0d0f/sim/blob/daa10471c8097e0a6b4b7869b27764aa6baf83a2/apps/sim/app/api/table/%5BtableId%5D/rows/route.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/4649/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/4649/files#diff-1d524d6cc0249dc92450d77e6a2572ddeebca5658f48b15a06026fefe7c8713e
https://github.com/simstudioai/sim/pull/4649/files#diff-1d524d6cc0249dc92450d77e6a2572ddeebca5658f48b15a06026fefe7c8713e
https://github.com/simstudioai/sim/pull/4649/files#diff-1d524d6cc0249dc92450d77e6a2572ddeebca5658f48b15a06026fefe7c8713e
https://github.com/simstudioai/sim/pull/4649/files#diff-1d524d6cc0249dc92450d77e6a2572ddeebca5658f48b15a06026fefe7c8713e
https://github.com/simstudioai/sim/pull/4649/files#diff-1d524d6cc0249dc92450d77e6a2572ddeebca5658f48b15a06026fefe7c8713e
apps/sim/app/api/v1/tables/[tableId]/rows/route.tshttps://github.com/simstudioai/sim/pull/4649/files#diff-66da8dda9c2be82f25e925ab86c5165605398d122a0aa192cd7665b2819bb067
View file https://github.com/Aries0d0f/sim/blob/daa10471c8097e0a6b4b7869b27764aa6baf83a2/apps/sim/app/api/v1/tables/%5BtableId%5D/rows/route.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/4649/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/4649/files#diff-66da8dda9c2be82f25e925ab86c5165605398d122a0aa192cd7665b2819bb067
https://github.com/simstudioai/sim/pull/4649/files#diff-66da8dda9c2be82f25e925ab86c5165605398d122a0aa192cd7665b2819bb067
https://github.com/simstudioai/sim/pull/4649/files#diff-66da8dda9c2be82f25e925ab86c5165605398d122a0aa192cd7665b2819bb067
https://github.com/simstudioai/sim/pull/4649/files#diff-66da8dda9c2be82f25e925ab86c5165605398d122a0aa192cd7665b2819bb067
https://github.com/simstudioai/sim/pull/4649/files#diff-66da8dda9c2be82f25e925ab86c5165605398d122a0aa192cd7665b2819bb067
apps/sim/lib/copilot/tools/server/table/user-table.tshttps://github.com/simstudioai/sim/pull/4649/files#diff-f226f84ebf59d60c85e117fec4b44d258fed6a0a424dc27695e921ceee6a1d41
View file https://github.com/Aries0d0f/sim/blob/daa10471c8097e0a6b4b7869b27764aa6baf83a2/apps/sim/lib/copilot/tools/server/table/user-table.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/4649/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/4649/files#diff-f226f84ebf59d60c85e117fec4b44d258fed6a0a424dc27695e921ceee6a1d41
https://github.com/simstudioai/sim/pull/4649/files#diff-f226f84ebf59d60c85e117fec4b44d258fed6a0a424dc27695e921ceee6a1d41
https://github.com/simstudioai/sim/pull/4649/files#diff-f226f84ebf59d60c85e117fec4b44d258fed6a0a424dc27695e921ceee6a1d41
https://github.com/simstudioai/sim/pull/4649/files#diff-f226f84ebf59d60c85e117fec4b44d258fed6a0a424dc27695e921ceee6a1d41
https://github.com/simstudioai/sim/pull/4649/files#diff-f226f84ebf59d60c85e117fec4b44d258fed6a0a424dc27695e921ceee6a1d41
https://github.com/simstudioai/sim/pull/4649/files#diff-f226f84ebf59d60c85e117fec4b44d258fed6a0a424dc27695e921ceee6a1d41
apps/sim/lib/table/__tests__/sql.test.tshttps://github.com/simstudioai/sim/pull/4649/files#diff-3fe61c7ca54977c5c4da074803b43fe6e2f81216aedc0e941bbf887daf3a64ed
View file https://github.com/Aries0d0f/sim/blob/daa10471c8097e0a6b4b7869b27764aa6baf83a2/apps/sim/lib/table/__tests__/sql.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/4649/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/4649/files#diff-3fe61c7ca54977c5c4da074803b43fe6e2f81216aedc0e941bbf887daf3a64ed
greptile-appshttps://github.com/apps/greptile-apps
May 18, 2026https://github.com/simstudioai/sim/pull/4649/files#r3258482865
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://github.com/simstudioai/sim/pull/4649/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/4649/files
https://github.com/simstudioai/sim/pull/4649/files#diff-3fe61c7ca54977c5c4da074803b43fe6e2f81216aedc0e941bbf887daf3a64ed
https://github.com/simstudioai/sim/pull/4649/files#diff-3fe61c7ca54977c5c4da074803b43fe6e2f81216aedc0e941bbf887daf3a64ed
https://github.com/simstudioai/sim/pull/4649/files#diff-3fe61c7ca54977c5c4da074803b43fe6e2f81216aedc0e941bbf887daf3a64ed
apps/sim/lib/table/service.tshttps://github.com/simstudioai/sim/pull/4649/files#diff-691e9b1dc59be0015a1be5ea6189899b241d4e979a8b40e088dd7d722cfaadb6
View file https://github.com/Aries0d0f/sim/blob/daa10471c8097e0a6b4b7869b27764aa6baf83a2/apps/sim/lib/table/service.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/4649/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/4649/files#diff-691e9b1dc59be0015a1be5ea6189899b241d4e979a8b40e088dd7d722cfaadb6
Please reload this pagehttps://github.com/simstudioai/sim/pull/4649/files
https://github.com/simstudioai/sim/pull/4649/files#diff-691e9b1dc59be0015a1be5ea6189899b241d4e979a8b40e088dd7d722cfaadb6
https://github.com/simstudioai/sim/pull/4649/files#diff-691e9b1dc59be0015a1be5ea6189899b241d4e979a8b40e088dd7d722cfaadb6
https://github.com/simstudioai/sim/pull/4649/files#diff-691e9b1dc59be0015a1be5ea6189899b241d4e979a8b40e088dd7d722cfaadb6
https://github.com/simstudioai/sim/pull/4649/files#diff-691e9b1dc59be0015a1be5ea6189899b241d4e979a8b40e088dd7d722cfaadb6
https://github.com/simstudioai/sim/pull/4649/files#diff-691e9b1dc59be0015a1be5ea6189899b241d4e979a8b40e088dd7d722cfaadb6
https://github.com/simstudioai/sim/pull/4649/files#diff-691e9b1dc59be0015a1be5ea6189899b241d4e979a8b40e088dd7d722cfaadb6
apps/sim/lib/table/sql.tshttps://github.com/simstudioai/sim/pull/4649/files#diff-6bdc8e3314777d023d081101b83c0458072aef721da07cf8b8881fd5d0fab5b3
View file https://github.com/Aries0d0f/sim/blob/daa10471c8097e0a6b4b7869b27764aa6baf83a2/apps/sim/lib/table/sql.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/4649/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/4649/files#diff-6bdc8e3314777d023d081101b83c0458072aef721da07cf8b8881fd5d0fab5b3
Please reload this pagehttps://github.com/simstudioai/sim/pull/4649/files
https://github.com/simstudioai/sim/pull/4649/files#diff-6bdc8e3314777d023d081101b83c0458072aef721da07cf8b8881fd5d0fab5b3
https://github.com/simstudioai/sim/pull/4649/files#diff-6bdc8e3314777d023d081101b83c0458072aef721da07cf8b8881fd5d0fab5b3
https://github.com/simstudioai/sim/pull/4649/files#diff-6bdc8e3314777d023d081101b83c0458072aef721da07cf8b8881fd5d0fab5b3
https://github.com/simstudioai/sim/pull/4649/files#diff-6bdc8e3314777d023d081101b83c0458072aef721da07cf8b8881fd5d0fab5b3
https://github.com/simstudioai/sim/pull/4649/files#diff-6bdc8e3314777d023d081101b83c0458072aef721da07cf8b8881fd5d0fab5b3
https://github.com/simstudioai/sim/pull/4649/files#diff-6bdc8e3314777d023d081101b83c0458072aef721da07cf8b8881fd5d0fab5b3
https://github.com/simstudioai/sim/pull/4649/files#diff-6bdc8e3314777d023d081101b83c0458072aef721da07cf8b8881fd5d0fab5b3
https://github.com/simstudioai/sim/pull/4649/files#diff-6bdc8e3314777d023d081101b83c0458072aef721da07cf8b8881fd5d0fab5b3
https://github.com/simstudioai/sim/pull/4649/files#diff-6bdc8e3314777d023d081101b83c0458072aef721da07cf8b8881fd5d0fab5b3
https://github.com/simstudioai/sim/pull/4649/files#diff-6bdc8e3314777d023d081101b83c0458072aef721da07cf8b8881fd5d0fab5b3
Please reload this pagehttps://github.com/simstudioai/sim/pull/4649/files
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.