Title: Empty query response · Issue #58 · apache/horaedb-client-java · GitHub
Open Graph Title: Empty query response · Issue #58 · apache/horaedb-client-java
X Title: Empty query response · Issue #58 · apache/horaedb-client-java
Description: Describe this problem Steps to reproduce Create table curl --location --request POST 'http://127.0.0.1:5440/sql' --data-raw ' CREATE TABLE `demo` ( `name` string TAG, `value` double NOT NULL, `t` timestamp NOT NULL, `t2` timestamp NOT NU...
Open Graph Description: Describe this problem Steps to reproduce Create table curl --location --request POST 'http://127.0.0.1:5440/sql' --data-raw ' CREATE TABLE `demo` ( `name` string TAG, `value` double NOT NULL, `t` t...
X Description: Describe this problem Steps to reproduce Create table curl --location --request POST 'http://127.0.0.1:5440/sql' --data-raw ' CREATE TABLE `demo` ( `name` string TAG, `value` double NOT...
Opengraph URL: https://github.com/apache/horaedb-client-java/issues/58
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Empty query response","articleBody":"**Describe this problem**\r\n\r\n\u003c!---\r\nWhat this problem is and what happened.\r\n-->\r\n\r\n**Steps to reproduce**\r\n\r\n1. Create table\r\n```\r\ncurl --location --request POST 'http://127.0.0.1:5440/sql' --data-raw '\r\nCREATE TABLE `demo` (\r\n `name` string TAG,\r\n `value` double NOT NULL,\r\n `t` timestamp NOT NULL,\r\n `t2` timestamp NOT NULL,\r\n timestamp KEY (t))\r\nENGINE=Analytic\r\n with\r\n(enable_ttl=\"false\")\r\n```\r\n2. Insert a row\r\n```\r\ncurl --location --request POST 'http://127.0.0.1:5440/sql' --data-raw '\r\nINSERT INTO demo (t, t2, name, value)\r\n VALUES (1651737067000, 1651737067009, \"ceresdb\", 100)\r\n'\r\n```\r\n3. Query by http interface\r\n```\r\ncurl --location --request POST 'http://127.0.0.1:5440/sql' --data-raw '\r\nSELECT t, avg(value) FROM `demo` group by t\r\n'\r\n```\r\n\r\nresponse: \r\n```\r\n{\"rows\":[{\"t\":1651737067000,\"AVG(demo.value)\":100.0}]}\r\n```\r\n4. Query by Java SDK\r\n```\r\n CeresDBClient client = getClient();\r\n String query = \"SELECT t, avg(value) FROM `demo` group by t\";\r\n SqlQueryRequest request = new SqlQueryRequest(query);\r\n CompletableFuture\u003cResult\u003cSqlQueryOk, Err>> future = client.sqlQuery(request);\r\n Result\u003cSqlQueryOk, Err> result = future.get();\r\n System.out.println(result);\r\n``` \r\nThe response's rowCount is 0.\r\n\r\n**Expected behavior**\r\n\r\n\r\n**Additional Information**\r\n","author":{"url":"https://github.com/zouxiang1993","@type":"Person","name":"zouxiang1993"},"datePublished":"2023-03-30T03:42:16Z","url":"https://github.com/apache/horaedb-client-java/issues/58"}
| react-profiling | 0 |
| react-import-map | react,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 | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b4d8e0c9-8bcc-ef6b-3e33-92731be51496 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C58E:256985:373E8E:4D897B:6AECFC21 |
| html-safe-nonce | 3be45a46f74cb4701f081af51cdd793018759038dc50e69d097d2e65b2f1e535 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNThFOjI1Njk4NTozNzNFOEU6NEQ4OTdCOjZBRUNGQzIxIiwidmlzaXRvcl9pZCI6IjI5MTAyMTk4MDUxOTQ1MTc1MzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b4c97715bb2808954e5b8bb4fb62af58975bfcbb415d5c8355206fd2e1f2afd9 |
| hovercard-subject-tag | issue:1646855397 |
| 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/apache/horaedb-client-java/58/issue_layout |
| twitter:image | https://opengraph.githubassets.com/269f9426f1e8f28ac5282363a58e78460397bc8fe638a83935a78fc50c8036ad/apache/horaedb-client-java/issues/58 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/269f9426f1e8f28ac5282363a58e78460397bc8fe638a83935a78fc50c8036ad/apache/horaedb-client-java/issues/58 |
| og:image:alt | Describe this problem Steps to reproduce Create table curl --location --request POST 'http://127.0.0.1:5440/sql' --data-raw ' CREATE TABLE `demo` ( `name` string TAG, `value` double NOT NULL, `t` t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zouxiang1993 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 76be9fd7856c8274dcfc751356c6c2dc12374a9696cbae1046752a000b9a5ca9 |
| turbo-cache-control | no-preview |
| go-import | github.com/apache/horaedb-client-java git https://github.com/apache/horaedb-client-java.git |
| octolytics-dimension-user_id | 47359 |
| octolytics-dimension-user_login | apache |
| octolytics-dimension-repository_id | 501159254 |
| octolytics-dimension-repository_nwo | apache/horaedb-client-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 501159254 |
| octolytics-dimension-repository_network_root_nwo | apache/horaedb-client-java |
| 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 | f3ae5cc8182dfd6f403dc93a15ed8017d5ee795b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width