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

Non-deterministic connection error with Amazon Athena connector #241

Closed
MegaByte opened this issue Jul 4, 2019 · 2 comments
Closed

Non-deterministic connection error with Amazon Athena connector #241

MegaByte opened this issue Jul 4, 2019 · 2 comments

Comments

@MegaByte
Copy link

MegaByte commented Jul 4, 2019

When using the Amazon Athena connector, the DSN call often fails with the following error:

Base.CodePointError{UInt32}(0x6f75712e)

Stacktrace:
 [1] code_point_err(::UInt32) at ./char.jl:86
 [2] Type at ./char.jl:160 [inlined]
 [3] transcode(::Type{UInt8}, ::Array{UInt32,1}) at ./c.jl:286
 [4] ODBCDriverConnect!(::Ptr{Nothing}, ::String, ::Bool) at /Users/aaron/.julia/packages/ODBC/P6nfr/src/ODBC.jl:29
 [5] #DSN#3(::Bool, ::Type, ::String, ::String, ::String) at /Users/aaron/.julia/packages/ODBC/P6nfr/src/ODBC.jl:128
 [6] Type at ./none:0 [inlined] (repeats 2 times)
 [7] top-level scope at In[69]:1

The particular address differs each time. Sometimes, the call completes successfully.
I am not sure if this is related to my PWD (AWS_SECRET_ACCESS_KEY), which includes slashes.

@quinnj
Copy link
Member

quinnj commented May 25, 2020

It would be worth checking if you still get errors on master (] add ODBC#master), since the big rewrite was merged. A CodePointError like this suggests some kind of unicode issue; iODBC by default uses UTF32, while unixODBC uses UTF16. It looks like the athena ODBC driver supports both iODBC and unixODBC, so it might be worth trying one or the other, on master, you can do ODBC.setunixODBC() or ODBC.setiODBC()); note that you can pass environment variables to be set when switching driver managers too; so if you wanted to set ODBCINI to your athena odbc.ini file location, you could do that.

Anyway, let me know if you're still able to reproduce and I can help try to diagnose further.

@quinnj
Copy link
Member

quinnj commented May 29, 2020

I think this is probably solved on master; there's been several updates/fixes with connection management, so I'm going to close and we can reopen if people see issues.

@quinnj quinnj closed this as completed May 29, 2020
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

2 participants