Skip to content

Commit

Permalink
update version to 3.8.2 and sdk version to 0.51.5
Browse files Browse the repository at this point in the history
  • Loading branch information
dingxin-tech committed Jan 15, 2025
1 parent db8ed1b commit 1cb0e8e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
6 changes: 3 additions & 3 deletions 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.8.1</version>
<version>3.8.2</version>
<name>odps-jdbc</name>
<description>Aliyun ODPS JDBC driver</description>
<url>http://odps.aliyun.com</url>
Expand Down Expand Up @@ -62,7 +62,7 @@
</repositories>

<properties>
<sdk.version>0.50.6-public</sdk.version>
<sdk.version>0.51.5-public</sdk.version>
<junit.version>4.11</junit.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jdk.version>1.8</jdk.version>
Expand Down Expand Up @@ -170,7 +170,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.1.0</version>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
Expand Down
9 changes: 7 additions & 2 deletions src/main/java/com/aliyun/odps/jdbc/OdpsStatement.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
import com.aliyun.odps.data.Record;
import com.aliyun.odps.jdbc.utils.OdpsLogger;
import com.aliyun.odps.jdbc.utils.Utils;
import com.aliyun.odps.sqa.ExecuteMode;
import com.aliyun.odps.sqa.SQLExecutor;
import com.aliyun.odps.tunnel.InstanceTunnel;
import com.aliyun.odps.tunnel.InstanceTunnel.DownloadSession;
Expand Down Expand Up @@ -557,8 +558,8 @@ public ResultSet getResultSet() throws SQLException {
enableLimit);

resultSet = new OdpsScollResultSet(this, meta, session,
connHandle.getExecutor()
.isRunningInInteractiveMode()
connHandle.getExecutor()
.getExecuteMode() == ExecuteMode.INTERACTIVE
? OdpsScollResultSet.ResultMode.INTERACTIVE
: OdpsScollResultSet.ResultMode.OFFLINE);
}
Expand Down Expand Up @@ -677,6 +678,10 @@ public void setPoolable(boolean poolable) throws SQLException {
throw new SQLFeatureNotSupportedException();
}

public ExecuteMode getExecuteMode() {
return connHandle.getExecutor().getExecuteMode();
}

private void beforeExecute() throws SQLException {
// If the statement re-executes another query, the previously-generated resultSet
// will be implicit closed. And the corresponding temp table will be dropped as well.
Expand Down

0 comments on commit 1cb0e8e

Please sign in to comment.