You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just wondering if you have any thoughts on what might be causing this problem. I am trying to use an impala odbc driver. Perhaps it is a driver problem
`connection :: IO Connection
connection = connect $ pack $ connString host port schema
where
connString host port schema =
"Driver=Impala;Host=" ++ host ++ ";Port=" ++ port ++ ";Schema=" ++ schema
test :: IO ()
test = do
conn <- connection
rows <- query conn "select * from article_base_open" :: IO [[Value]]
print rows
close conn
`
Just wondering if you have any thoughts on what might be causing this problem. I am trying to use an impala odbc driver. Perhaps it is a driver problem
`connection :: IO Connection
connection = connect $ pack $ connString host port schema
where
connString host port schema =
"Driver=Impala;Host=" ++ host ++ ";Port=" ++ port ++ ";Schema=" ++ schema
test :: IO ()
test = do
conn <- connection
rows <- query conn "select * from article_base_open" :: IO [[Value]]
print rows
close conn
`
*** Exception: UnsuccessfulReturnCode "odbc_SQLExecDirectW" (-1) "[Cloudera][ImpalaODBC] (360) Syntax error occurred during query execution: [HY000] : AnalysisException: Syntax error in line 1:\n\65533\65533\65533\65533\65533\65533\65533\65533\65533\65533\65533\65533\65533\65533\65533n\65533B\65533\32717\SOH\SOH\65533B\65533B\65533\32717\65533B\65533\n^\nEncountered: Unexpected character\nExpected: ALTER, COMPUTE, CREATE, DESCRIBE, DROP, EXPLAIN, GRANT, INSERT, INVALIDATE, LOAD, REFRESH, REVOKE, SELECT, SET, SHOW, USE, VALUES, WITH\n\nCAUSED BY: Exception: Syntax error\n[Cloudera][ImpalaODBC] (360) Syntax error occurred during query execution: [HY000] : AnalysisException: Syntax error in line 1:\n\65533\65533\65533\65533\65533\65533\65533\65533\65533\65533\65533\65533\65533\65533\65533n\65533B\65533\32717\SOH\SOH\65533B\65533B\65533\32717\65533B\65533\n^\nEncountered: Unexpected character\nExpected: ALTER, COMPUTE, CREATE, DESCRIBE, DROP, EXPLAIN, GRANT, INSERT, INVALIDATE, LOAD, REFRESH, REVOKE, SELECT, SET, SHOW, USE, VALUES, WITH\n\nCAUSED BY: Exception: Syntax error\nC"
The text was updated successfully, but these errors were encountered: