[HeavyConnect] ODBC BigQuery - Can not read certain string values

Comments

3 comments

  • Avatar
    Candido Dessanti

    Hi,

    Probably the source data contains a multibyte char, but the connector is allocating the buffers as it was composed by single bytes.

    We support multibyte characters in the database, but there is probably something wrong with the ODBC connector, which is still in beta state.

    Candido

    0
    Comment actions Permalink
  • Avatar
    Jose Eduardo Reinoso Andrade

    Hello Candido after some test. You are right!!! 

    Here you have the workaround that i have found.

    - Apply this "replace" in all string columns that you want to connect with the ODBC. 

    REGEXP_REPLACE(col_name, r'[^\x00-\x7F]', '_') as col_name
    0
    Comment actions Permalink
  • Avatar
    Candido Dessanti

    Hi,

    I'm glad you found the workaround. I will open an internal ticket to get that fixed. I just need to reproduce the issue.

    0
    Comment actions Permalink

Please sign in to leave a comment.