Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sqlserver "image" to postgresql "bytea" #202

Open
richardbeare opened this issue Oct 9, 2024 · 0 comments
Open

sqlserver "image" to postgresql "bytea" #202

richardbeare opened this issue Oct 9, 2024 · 0 comments

Comments

@richardbeare
Copy link

Describe the bug

I suspect this isn't a bug but a newbie problem. Appreciate any advice.

A source table in sqlserver with a blob column, reported as type image does not appear to be converted correctly to a destination column of type bytea in postgresql. It appears that string encoding is going on somewhere.

The resulting fields appear approximately twice the size of the original.

I've tested sink.disable.escape=true, with no change to results

To Reproduce
Steps to reproduce the behaviour:

  1. Source table DDL

column name: blob_contents
type : image
length: 16

  1. Sink table DDL

column name: blob_content
type: bytea

  1. ReplicaDB configuration options-file.

######################## ReplicadB General Options ########################
mode=complete
jobs=1
############################# Soruce Options ##############################
source.connect=jdbc:sqlserver://sqlserverhostname:1433;databaseName=Workbench
source.user=
source.password=
source.table=tblblobs
source.connect.parameter.driver=com.microsoft.sqlserver.jdbc.SQLServerDriver
############################# Sink Options ################################
sink.connect=jdbc:postgresql://172.31.0.3:5432/testdb
sink.user=postgres
sink.password=??
sink.table=public.tblblobs
sink.connect.parameter.driver=org.postgresql.Driver
sink.disable.escape=true

Expected behavior

sink content should be the same as the source. Currently it is twice the size

Additional context
sqlserver is remote, replicadb and postgresql are running in separate docker containers on the same linux host.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant