Skip to content

Commit

Permalink
Fix serializing Postgres tsvector type
Browse files Browse the repository at this point in the history
  • Loading branch information
exAspArk committed Nov 12, 2024
1 parent 7159eac commit 5de914a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

#### [v0.4.3](https://github.com/BemiHQ/BemiDB/compare/v0.4.2...v0.4.3) - 2024-11-12

- Fix serializing Postgres `tsvector` type

#### [v0.4.2](https://github.com/BemiHQ/BemiDB/compare/v0.4.1...v0.4.2) - 2024-11-12

- Fix converting Postgres timestamps without timezones
Expand Down
2 changes: 1 addition & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

VERSION="0.4.2"
VERSION="0.4.3"

# Detect OS and architecture
OS=$(uname -s | tr '[:upper:]' '[:lower:]')
Expand Down
2 changes: 1 addition & 1 deletion src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
)

const VERSION = "0.4.2"
const VERSION = "0.4.3"

func main() {
flag.Parse()
Expand Down
4 changes: 2 additions & 2 deletions src/pg_schema_column.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ func (pgSchemaColumn PgSchemaColumn) toIcebergSchemaField() IcebergSchemaField {
}

switch pgSchemaColumn.UdtName {
case "varchar", "char", "text", "jsonb", "json", "uuid", "bpchar":
case "varchar", "char", "text", "jsonb", "json", "uuid", "bpchar", "tsvector":
icebergSchemaField.Type = "string"
case "int2", "int4":
icebergSchemaField.Type = "int"
Expand Down Expand Up @@ -214,7 +214,7 @@ func (pgSchemaColumn *PgSchemaColumn) toParquetSchemaField() ParquetSchemaField
}

switch pgSchemaColumn.UdtName {
case "varchar", "char", "text", "bytea", "jsonb", "json", "bpchar":
case "varchar", "char", "text", "bytea", "jsonb", "json", "bpchar", "tsvector":
parquetSchemaField.Type = "BYTE_ARRAY"
parquetSchemaField.ConvertedType = "UTF8"
case "int2", "int4":
Expand Down

0 comments on commit 5de914a

Please sign in to comment.