Skip to content

Commit

Permalink
release: Update version to 3.2.28
Browse files Browse the repository at this point in the history
  • Loading branch information
idleyui committed May 24, 2022
1 parent c1ae231 commit de38268
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.aliyun.odps</groupId>
<artifactId>odps-jdbc</artifactId>
<version>3.2.26</version>
<version>3.2.28</version>
<name>odps-jdbc</name>
<description>Aliyun ODPS JDBC driver</description>
<url>http://odps.aliyun.com</url>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -889,6 +889,7 @@ private void convertTableNamesToRows(
convertTablesToRows(types, rows, tables);
}


private void convertTablesToRows(String[] types, List<Object[]> rows, List<Table> tables) {
for (Table t : tables) {
String tableType = t.isVirtualView() ? TABLE_TYPE_VIEW : TABLE_TYPE_TABLE;
Expand Down
14 changes: 14 additions & 0 deletions src/main/java/com/aliyun/odps/jdbc/OdpsStatement.java
Original file line number Diff line number Diff line change
Expand Up @@ -997,4 +997,18 @@ public static String getDefaultTaskName() {
public Properties getSqlTaskProperties() {
return sqlTaskProperties;
}

public String getLogView() throws OdpsException {
return getLogView(24 * 7);
}

public String getLogView(int lifeCycleHour) throws OdpsException {
LogView logView = new LogView(connHandle.getOdps());
return logView.generateLogView(executeInstance, lifeCycleHour);
}

public String getInstanceId() {
return executeInstance.getId();
}

}

0 comments on commit de38268

Please sign in to comment.