You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix-postgres-source: get rid of short lived objects (#21634)
* fix-postgres-source: get rid of short lived objects
* cache column info as well
* get rid of constructor
* upgrade version
* auto-bump connector version
* update definition
---------
Co-authored-by: Octavia Squidington III <[email protected]>
Copy file name to clipboardExpand all lines: airbyte-integrations/connectors/source-postgres/src/main/java/io/airbyte/integrations/source/postgres/PostgresSourceOperations.java
+50-31Lines changed: 50 additions & 31 deletions
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,10 @@
40
40
importjava.time.OffsetDateTime;
41
41
importjava.time.OffsetTime;
42
42
importjava.time.format.DateTimeParseException;
43
+
importjava.util.Arrays;
43
44
importjava.util.Collections;
45
+
importjava.util.HashMap;
46
+
importjava.util.Map;
44
47
importorg.postgresql.geometric.PGbox;
45
48
importorg.postgresql.geometric.PGcircle;
46
49
importorg.postgresql.geometric.PGline;
@@ -60,6 +63,12 @@ public class PostgresSourceOperations extends AbstractJdbcCompatibleSourceOperat
Copy file name to clipboardExpand all lines: airbyte-integrations/connectors/source-postgres/src/main/java/io/airbyte/integrations/source/postgres/PostgresType.java
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@
6
6
7
7
importjava.sql.SQLType;
8
8
importjava.sql.Types;
9
+
importjava.util.Map;
9
10
10
11
publicenumPostgresTypeimplementsSQLType {
11
12
@@ -74,7 +75,7 @@ public enum PostgresType implements SQLType {
74
75
/**
75
76
* The Integer value for the JDBCType. It maps to a value in {@code Types.java}
76
77
*/
77
-
privateIntegertype;
78
+
protectedIntegertype;
78
79
79
80
/**
80
81
* Constructor to specify the data type value from {@code Types) for
@@ -121,18 +122,17 @@ public Integer getVendorTypeNumber() {
121
122
* {@code Types} value
122
123
* @see Types
123
124
*/
124
-
publicstaticPostgresTypevalueOf(inttype) {
125
-
for (PostgresTypesqlType : PostgresType.class.getEnumConstants()) {
| 1.0.43 | 2022-02-06 |[21634](https://github.com/airbytehq/airbyte/pull/21634)| Improve Standard sync performance by caching objects.|
330
331
| 1.0.36 | 2023-01-24 |[21825](https://github.com/airbytehq/airbyte/pull/21825)| Put back the original change that will cause an incremental sync to error if table contains a NULL value in cursor column.|
| 1.0.40 | 2023-01-24 |[21825](https://github.com/airbytehq/airbyte/pull/21825)| Put back the original change that will cause an incremental sync to error if table contains a NULL value in cursor column. |
0 commit comments