Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Sqoop using column label instead of column name

Sqoop using column label instead of column name

New Contributor

There is a bug in Apache sqoop as mentioned in the below link. As the column label is first evaluated, so the column name is ignored. By this when we are using generic driver (not using any connection manager), the sqoop import is failing saying column not found.

https://issues.apache.org/jira/browse/SQOOP-585

I am finding the same type of issue in Hortonworks as well, is there a chance of patch on this?

Steps to produce the Error:-

In Teradata create a table having TITLE. But use different name for TITLE (it should not be same as column name).

Try a sqoop import without using connection manager, so that it will go for the generic JDBC connection.

Then you can see the error as the "Column not found". Because the JAVA program first evaluating the TITLE NAME then column name. So it is thinking the TITLE NAME as column name and when querying it is failing.

I can understand, this error will not happen if Teradata connection manager is used, but how can we solve it without using the Teradata connection manager.

Don't have an account?
Coming from Hortonworks? Activate your account here