Andy Yeo (Airbyte)
02/15/2023, 11:26 PMAndy Yeo (Airbyte)
02/15/2023, 11:27 PMSlackbot
02/15/2023, 11:35 PMAdam Tworkiewicz
02/15/2023, 11:39 PMAndy Yeo (Airbyte)
02/15/2023, 11:43 PMAdam Tworkiewicz
02/16/2023, 2:30 AMIvica Taseski
02/16/2023, 3:54 PMAdam Tworkiewicz
02/16/2023, 4:01 PMIvica Taseski
02/21/2023, 11:06 AMIvica Taseski
02/23/2023, 11:04 PMPOST {base_url}/environments
TeradataHttpClient teradataHttpClient = new TeradataHttpClient("<https://api.clearscape.teradata.com>");
var request = new CreateEnvironmentRequest("name", Region.US_CENTRAL.getRegionName(), "password");
var response = teradataHttpClient.createEnvironment(request, "api-token");
// make sure to call get() otherwise the background/daemon thread gets shut down before the http call is made
response.get();
GET {base_url}/environments/{environment_name}
TeradataHttpClient teradataHttpClient = new TeradataHttpClient("<https://api.clearscape.teradata.com>");
var request = new GetEnvironmentRequest("name");
var response = teradataHttpClient.getEnvironment(request, "api-token");
DELETE {base_url}/environments/{environment_name}
TeradataHttpClient teradataHttpClient = new TeradataHttpClient("<https://api.clearscape.teradata.com>");
var request = new DeleteEnvironmentRequest("name");
var response = teradataHttpClient.deleteEnvironment(request, "api-token");
// make sure to call get() otherwise the background/daemon thread gets shut down before the http call is made
response.get();
With that in mind it should be pretty straightforward to make the necessary calls in the @BeforeAll
and @AfterAll
test hooks.
P.S There is another method named pollingCreateEnvironment
which is currently not implemented in order to unblock you faster but the main purpose of that method is to avoid long running connections/operations on POST {base_url}/environments
and DELETE {base_url}/environments/{environment_name}
which take ~1.5 min on average and can cause connection issues and instead check for instance readiness by polling the GET {base_url}/environments/{environment_name}
endpoint repeatedly until the instance goes in status RUNNING.Ivica Taseski
03/08/2023, 10:55 PMReceiver class com.teradata.jdbc.jdk6.JDK6_SQL_ResultSet does not define or inherit an implementation of the resolved method 'abstract java.lang.Object getObject(int, java.lang.Class)' of interface java.sql.ResultSet.
java.lang.AbstractMethodError: Receiver class com.teradata.jdbc.jdk6.JDK6_SQL_ResultSet does not define or inherit an implementation of the resolved method 'abstract java.lang.Object getObject(int, java.lang.Class)' of interface java.sql.ResultSet.
at com.zaxxer.hikari.pool.HikariProxyResultSet.getObject(HikariProxyResultSet.java)
which is most likely caused by the JDBC driver being incompatible with newer versions of Java (17 being used in the connector) since the ResultSet interface includes a method getObject(int, java.lang.Class) which isn't implemented by the driver.
Is there some workaround for this other than reimplementing the source abstractons to use a supported getObject() method and type casting the ResultSet myself? Imo downgrading to a lower version of Java in the connector shouldn't be even considered both from maintenance and performance reasons.Andy Yeo (Airbyte)
03/08/2023, 10:59 PMIvica Taseski
03/08/2023, 11:06 PMjava.lang.Object getObject(int, java.lang.Class)
seems to be present but implemented by always returning null.Satish Chinthanippu
03/09/2023, 5:36 AMSatish Chinthanippu
03/09/2023, 5:36 AMSatish Chinthanippu
03/09/2023, 5:37 AMIvica Taseski
03/15/2023, 12:05 AMINSERT INTO table_name (name, tmstmp) VALUES ('c', '2021-01-02 00:00:00')
INSERT INTO table_name (name, tmstmp) VALUES ('d', '2021-01-02 00:00:00')
INSERT INTO table_name (name, tmstmp) VALUES ('e', '2021-01-02 00:00:00')
INSERT INTO table_name (name, tmstmp) VALUES ('f', '2021-01-03 00:00:00')
and I execute a query for retrieving the above data with three identical timestamps and one not SELECT * FROM table_name WHERE tmstmp > 2021-01-01 00:00:00 ORDER BY tmstmp ASC
shouldn't entries be ordered by insertion order when equal ordering values or does Teradata make no such guarantees? What I'm getting is [d, c, e, f] instead of [c, d, e, f]Ivica Taseski
03/15/2023, 8:47 AMGreg Solovyev (AirByte)
03/29/2023, 6:14 AMPrateek Mukhedkar (Airbyte)
03/29/2023, 5:06 PMPrateek Mukhedkar (Airbyte)
03/29/2023, 11:31 PM