Title: Metadata types should be duckdb types · Issue #28 · Query-farm/httpserver · GitHub
Open Graph Title: Metadata types should be duckdb types · Issue #28 · Query-farm/httpserver
X Title: Metadata types should be duckdb types · Issue #28 · Query-farm/httpserver
Description: I noticed that metadata returned when POSTing to /?default_format=JSONCompact uses non-duckdb types and they are usually strings. Is this to be compatible with clickhouse? I think it would make more sense to use duckdb types (eg VARCHAR ...
Open Graph Description: I noticed that metadata returned when POSTing to /?default_format=JSONCompact uses non-duckdb types and they are usually strings. Is this to be compatible with clickhouse? I think it would make mor...
X Description: I noticed that metadata returned when POSTing to /?default_format=JSONCompact uses non-duckdb types and they are usually strings. Is this to be compatible with clickhouse? I think it would make mor...
Opengraph URL: https://github.com/Query-farm/httpserver/issues/28
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Metadata types should be duckdb types","articleBody":"I noticed that metadata returned when POSTing to `/?default_format=JSONCompact` uses non-duckdb types and they are usually strings. Is this to be compatible with clickhouse?\r\n\r\nI think it would make more sense to use duckdb types (eg VARCHAR \u003e String), (INT \u003e Int32)\r\neg\r\n```sql\r\nselect 1\r\n```\r\n\r\nreturns\r\n\r\n```json\r\n{\r\n \"meta\": [\r\n {\r\n \"name\": \"1\",\r\n \"type\": \"Int32\"\r\n }\r\n ],\r\n \"data\": [\r\n [\r\n \"1\"\r\n ]\r\n ],\r\n \"rows\": 1\r\n}\r\n```\r\n\r\n\r\n```sql\r\nWITH l33t_uuid AS (\r\n SELECT 'deadbeef-1337-4b1d-8008-0123456789ab'::UUID AS uuid_value\r\n)\r\nSELECT\r\n uuid_value::VARCHAR AS uuid_string,\r\n uuid_value AS uuid_uuid,\r\n typeof(uuid_value::VARCHAR) AS uuid_string_type,\r\n typeof(uuid_value) AS uuid_uuid_type\r\nFROM l33t_uuid;\r\n```\r\nReturns\r\n```json\r\n{\r\n \"meta\": [\r\n {\r\n \"name\": \"uuid_string\",\r\n \"type\": \"String\"\r\n },\r\n {\r\n \"name\": \"uuid_uuid\",\r\n \"type\": \"String\"\r\n },\r\n {\r\n \"name\": \"uuid_string_type\",\r\n \"type\": \"String\"\r\n },\r\n {\r\n \"name\": \"uuid_uuid_type\",\r\n \"type\": \"String\"\r\n }\r\n ],\r\n \"data\": [\r\n [\r\n \"deadbeef-1337-4b1d-8008-0123456789ab\",\r\n \"deadbeef-1337-4b1d-8008-0123456789ab\",\r\n \"VARCHAR\",\r\n \"UUID\"\r\n ]\r\n ],\r\n \"rows\": 1\r\n}\r\n```\r\n","author":{"url":"https://github.com/tarasglek","@type":"Person","name":"tarasglek"},"datePublished":"2025-01-14T14:31:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":16},"url":"https://github.com/28/httpserver/issues/28"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b8b60199-f451-358b-c03b-f0bb95d4d39a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ABAE:307977:2B2892B:38FB80F:6981AAC6 |
| html-safe-nonce | ff3c692f66a8ccac1de85cd56846031bd82c38181606f1761ccdea827b609f5a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQkFFOjMwNzk3NzoyQjI4OTJCOjM4RkI4MEY6Njk4MUFBQzYiLCJ2aXNpdG9yX2lkIjoiNTA3OTUxMzc2OTU0NjE5NzcwMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3b94eec2224a68b4bfda1bd239115372b3403addccc412a3575e1295a9f8b0c5 |
| hovercard-subject-tag | issue:2787312961 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/Query-farm/httpserver/28/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fbee6a783fc70a28331fc78d3f337caf3f45883d6773f0acc2e98e052657ccbb/Query-farm/httpserver/issues/28 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fbee6a783fc70a28331fc78d3f337caf3f45883d6773f0acc2e98e052657ccbb/Query-farm/httpserver/issues/28 |
| og:image:alt | I noticed that metadata returned when POSTing to /?default_format=JSONCompact uses non-duckdb types and they are usually strings. Is this to be compatible with clickhouse? I think it would make mor... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tarasglek |
| hostname | github.com |
| expected-hostname | github.com |
| None | e137814e266030874fd2c86863529d0622b13889eeda04148c57654b6ea84ad6 |
| turbo-cache-control | no-preview |
| go-import | github.com/Query-farm/httpserver git https://github.com/Query-farm/httpserver.git |
| octolytics-dimension-user_id | 183420031 |
| octolytics-dimension-user_login | Query-farm |
| octolytics-dimension-repository_id | 869750358 |
| octolytics-dimension-repository_nwo | Query-farm/httpserver |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 869750358 |
| octolytics-dimension-repository_network_root_nwo | Query-farm/httpserver |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | dd58d68a7813bbec9c91422c8c35f4af33832d70 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width