I am trying to pull data from a MySQL database into Impala with the following sqoop command.
sqoop import --connect jdbc:mysql://<ip>:3306/mydb --username user --password pass --fetch-size -2147483648 --query 'select (id,action,object,time) from events WHERE $CONDITIONS and id > 0' --hive-table events --hive-import --target-dir /user/cloud/joinedres --split-by id --num-mappers 1
The error I am getting is
Error executing statement: java.sql.SQLException: Operand should contain 1 column(s).
Prior to that the SqlManager
reported WHERE (1 = 0)
as part of the Executing SQL statement