Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
kellen committed Nov 21, 2024
1 parent ac8f258 commit dcc9fca
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 30 deletions.
2 changes: 1 addition & 1 deletion NOTICE
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
DBeam
Copyright 2017 Spotify AB
Copyright 2024 Spotify AB
56 changes: 28 additions & 28 deletions docs/type-conversion.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,31 @@ When applicable and `--useAvroLogicalTypes` parameter is set to `true`, Avro log

To represent nullable columns, unions with the Avro NULL type are used.

**Java SQL type** | **Avro type** | **Avro schema annotations** | **Comments**
--- | --- | --- | ---
BIGINT | long / string | | Depends on a SQL column precision
INTEGER | int | |
SMALLINT | int | |
TINYINT | int | |
TIMESTAMP | long |logicalType: time-millis |
DATE | long | logicalType: time-millis |
TIME | long | logicalType: time-millis |
TIME_WITH_TIMEZONE | long | logicalType: time-millis |
BOOLEAN | boolean | |
BIT | boolean / bytes | | Depends on a SQL column precision
BINARY | bytes | |
BINARY | bytes | |
VARBINARY | bytes | |
LONGVARBINARY | bytes | |
ARRAY | bytes | |
BLOB | bytes | |
DOUBLE | double | |
FLOAT | float | |
REAL | float | |
VARCHAR | string | |
CHAR | string | |
CLOB | string | |
LONGNVARCHAR | string | |
LONGVARCHAR | string | |
NCHAR | string | |
all other Java SQL types | string | |
| **Java SQL type** | **Avro type** | **Avro schema annotations** | **Comments** |
|--------------------------|-----------------|-----------------------------|-----------------------------------|
| BIGINT | long / string | | Depends on a SQL column precision |
| INTEGER | int | | |
| SMALLINT | int | | |
| TINYINT | int | | |
| TIMESTAMP | long | logicalType: time-millis | |
| DATE | long | logicalType: time-millis | |
| TIME | long | logicalType: time-millis | |
| TIME_WITH_TIMEZONE | long | logicalType: time-millis | |
| BOOLEAN | boolean | | |
| BIT | boolean / bytes | | Depends on a SQL column precision |
| BINARY | bytes | | |
| BINARY | bytes | | |
| VARBINARY | bytes | | |
| LONGVARBINARY | bytes | | |
| ARRAY | bytes | | |
| BLOB | bytes | | |
| DOUBLE | double | | |
| FLOAT | float | | |
| REAL | float | | |
| VARCHAR | string | | |
| CHAR | string | | |
| CLOB | string | | |
| LONGNVARCHAR | string | | |
| LONGVARCHAR | string | | |
| NCHAR | string | | |
| all other Java SQL types | string | | |
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
<opencensus.version>0.31.1</opencensus.version>

<!-- other deps -->
<avro.version>1.11.3</avro.version>
<avro.version>1.11.4</avro.version>
<bouncycastle.version>1.78.1</bouncycastle.version>
<junit.version>4.13.2</junit.version>
<mysql.version>8.4.0</mysql.version>
Expand Down Expand Up @@ -550,6 +550,7 @@
<exclude>com.fasterxml.jackson.core:jackson-core</exclude>
<exclude>com.fasterxml.jackson.core:jackson-databind</exclude>
<exclude>com.fasterxml.jackson.datatype:jackson-datatype-jsr310</exclude>
<exclude>com.github.luben:zstd-jni</exclude>
<exclude>com.google.auto.value:auto-value</exclude>
<exclude>com.google.auto.value:auto-value-annotations</exclude>
<exclude>com.google.errorprone:error_prone_annotations</exclude>
Expand Down

0 comments on commit dcc9fca

Please sign in to comment.