Skip to content

Conversation

@LJW21-02
Copy link
Contributor

@LJW21-02 LJW21-02 commented Jan 9, 2025

Primary Changes

  • modified codes in iotdb-client/jdbc
  • increased IoTDBAbstractDatabaseMetadata, IoTDBDatabaseMetadata, IoTDBTableDatabaseMetadata
  • modified pom.xml

Key Results

  • able to connect both tree-model IoTDB and table-model IoTDB in DBeaver
    Screenshot 2025-02-18 at 9 32 44 AM
  • able to view the data in tables
    Screenshot 2025-02-18 at 9 36 06 AM

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, this is your first pull request in IoTDB project. Thanks for your contribution! IoTDB will be better because of you.

}

static {
String[] allIotdbSQLKeywords = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keywords of table and tree model are different, you can find keywords of table model in https://timechor.feishu.cn/docx/U5OHdYQs1oR0hVxvy5Ucw0KUnBf

Comment on lines 849 to 873
ResultSet resultSet = null;
Statement statement = null;
String result = "";
try {
statement = connection.createStatement();
StringBuilder str = new StringBuilder("");
resultSet = statement.executeQuery(SHOW_FUNCTIONS);
List<String> listFunction = Arrays.asList("MAX_TIME", "MIN_TIME", "TIME_DIFFERENCE", "NOW");
while (resultSet.next()) {
if (listFunction.contains(resultSet.getString(1))) {
continue;
}
str.append(resultSet.getString(1)).append(",");
}
result = str.toString();
if (!result.isEmpty()) {
result = result.substring(0, result.length() - 1);
}
} catch (Exception e) {
LOGGER.error("Get numeric functions error: {}", e.getMessage());
} finally {
close(resultSet, statement);
}
return result;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not right

Copy link
Collaborator

@CritasWang CritasWang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@JackieTien97 JackieTien97 merged commit 61576c0 into apache:master Feb 21, 2025
59 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants