Giter Club home page Giter Club logo

incubator-horaedb-client-java's People

Contributors

archerny avatar chunshao90 avatar dependabot[bot] avatar fengjiachun avatar jiacai2050 avatar michaelleehz avatar tanruixiang avatar tisonkun avatar zuliangwang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

incubator-horaedb-client-java's Issues

Empty query response

Describe this problem

Steps to reproduce

  1. 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 NULL,
    timestamp KEY (t))
ENGINE=Analytic
  with
(enable_ttl="false")
  1. Insert a row
curl --location --request POST 'http://127.0.0.1:5440/sql' --data-raw '
INSERT INTO demo (t, t2, name, value)
    VALUES (1651737067000, 1651737067009, "ceresdb", 100)
'
  1. Query by http interface
curl --location --request POST 'http://127.0.0.1:5440/sql' --data-raw '
SELECT t, avg(value) FROM `demo` group by t
'

response:

{"rows":[{"t":1651737067000,"AVG(demo.value)":100.0}]}
  1. Query by Java SDK
        CeresDBClient client = getClient();
        String query = "SELECT t, avg(value) FROM `demo` group by t";
        SqlQueryRequest request = new SqlQueryRequest(query);
        CompletableFuture<Result<SqlQueryOk, Err>> future = client.sqlQuery(request);
        Result<SqlQueryOk, Err> result = future.get();
        System.out.println(result);

The response's rowCount is 0.

Expected behavior

Additional Information

Report NPE for table error while creating table

Describe this problem

ceresdb server is running as single mode, image: ceresdb/ceresdb-server: nightly-20230223-ce9fa87

Report NPE for table error while creating table

Steps to reproduce

Expected behavior

Additional Information

Remove the protos and generated codes inside this project.

Description

The proto files and generated code should be managed in a single repo, rather than scatter them everywhere. It will be more maintainable that other projects depend on one single proto repo.

Proposal

Since ceresdb-client-java is a pure Java written project, we can add ceresdb-proto-internal as a dependency to the pom. And then remove the protos and related codes maintained inside this project.

Additional context

no

code formatter settings does not work sometimes.

Describe this problem

When there are lambda expressions in the code files, code formatter does not work.

Steps to reproduce

use maven -X to see the debug log

Expected behavior

All java codes, except the generated files should be formatted.

Additional Information

garbled characters

Describe this problem
Using the image of ceresdb:v1.0.0 and the sdk of version 1.0.1, when the query data contains Chinese characters, some servers have garbled characters

Steps to reproduce
By setting JAVA_OPTS="$JAVA_OPTS -Dfile.encoding=US-ASCII"

Expected behavior
Chinese characters are not garbled

Additional Information

bug: Query failed when aliasing a table name in sql

Describe this problem

It occurs Table not found when aliasing a table name in sql

Steps to reproduce

Run this sql with sdk

select * from `SPM_2197803522_INFLUENCE_DEFAULT` t1 
WHERE 
t1.`period` between '2023-03-22 11:09:00' and  '2023-03-22 11:09:59'
limit 10

Expected behavior

No error happened

Additional Information

It's time to make a first formal release

Description
Current client APIs are stable and have passed many tests in different scenarios. It's time to make a first formal release.

Proposal

Release 0.1.0

Additional context
No.

support eclipse dev environment

Eclipse will produce some config file, should be ignored
image

Eclipse m2e errors, such as:

  • Plugin execution not covered by lifecycle configuration: com.googlecode.maven-java-formatter-plugin:maven-java-formatter-plugin:0.4:format (execution: default, phase: process-sources)

Feat: Support refresh table routing info in Client

Description

I found table routeCache will not refresh when routeCache size is too small.

   if (this.routeCache.size() < this.opts.getMaxCachedSize() * CLEAN_CACHE_THRESHOLD) {
            LOG.info("Now that the number of cached entries is {}.", this.routeCache.size());
            return times;
        }

The problem is:
Request will be routed to wrong server after table is recreated.

Proposal

Support refresh table routing info in Client periodly

Additional context

Memory leak for java SDK

Describe this problem

Memory leak for sdk 1.0.0

Steps to reproduce

Expected behavior

Additional Information

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.