Wanting to run a query in a C# application against hive.
OdbcCommand cmd = conn.CreateCommand();
cmd.CommandText = "SELECT * FROM user WHERE id = ?";
cmd.Parameters.Add("?id", OdbcType.Int).Value = 4;
OdbcDataReader reader = cmd.ExecuteReader();
But end up getting an error from the ODBC driver
ERROR [HY000] [Hortonworks][HiveODBC] (80) Syntax or semantic analysis error thrown in server while execurint query. Error message from server: Error while compiling statement: FAILED: ParseException line 1:42 cannot recognize input near '?' '' in expression specification