[
https://issues.apache.org/jira/browse/SQOOP-2041?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14292836#comment-14292836
]
Gwen Shapira commented on SQOOP-2041:
-------------------------------------
Local tests failing as well:
{code}
Tests run: 6, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 7.568 sec <<<
FAILURE!
testFromDirection(org.apache.sqoop.repository.derby.TestConnectorHandling)
Time elapsed: 0.019 sec <<< FAILURE!
org.apache.sqoop.common.SqoopException: COMMON_0011:Registration of connector
failed - connector-A:-1:org.apache.sqoop.test.A, Link: Configs:
config-l1:-1:[input-I1:-1:STRING:30,
input-I2:-1:MAP]config-l2:-1:[input-I3:-1:STRING:30, input-I4:-1:MAP]Type:
LINK, From: Configs: config-from1:-1:[input-I1:-1:STRING:30,
input-I2:-1:MAP]config-from2:-1:[input-I3:-1:STRING:30, input-I4:-1:MAP]Type:
JOB
at org.apache.derby.iapi.error.StandardException.newException(Unknown
Source)
at org.apache.derby.iapi.types.SQLChar.getLong(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedResultSet.getLong(Unknown Source)
at
org.apache.sqoop.repository.common.CommonRepositoryHandler.getDirection(CommonRepositoryHandler.java:1508)
at
org.apache.sqoop.repository.common.CommonRepositoryHandler.insertConnectorDirection(CommonRepositoryHandler.java:1178)
at
org.apache.sqoop.repository.common.CommonRepositoryHandler.insertConnectorDirections(CommonRepositoryHandler.java:1191)
at
org.apache.sqoop.repository.common.CommonRepositoryHandler.insertAndGetConnectorId(CommonRepositoryHandler.java:1221)
at
org.apache.sqoop.repository.common.CommonRepositoryHandler.registerConnector(CommonRepositoryHandler.java:148)
at
org.apache.sqoop.repository.derby.TestConnectorHandling.testFromDirection(TestConnectorHandling.java:98)
{code}
Looks like an issue with the patch.
> Sqoop2: Escape identifier names
> -------------------------------
>
> Key: SQOOP-2041
> URL: https://issues.apache.org/jira/browse/SQOOP-2041
> Project: Sqoop
> Issue Type: Bug
> Components: sqoop2-derby-repository, sqoop2-postgresql-repository
> Reporter: Abraham Elmahrek
> Assignee: Abraham Elmahrek
> Fix For: 1.99.5
>
> Attachments: SQOOP-2041.0.patch, SQOOP-2041.1.patch
>
>
> Table name, column name, etc. casing is not enforced unless they are are
> escaped with quotes. Quotes should be used to define the case of tables and
> columns and reduce inconsistencies in code.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)