mirror of
https://github.com/alibaba/DataX.git
synced 2025-05-02 23:52:00 +08:00
Update CassandraReaderHelper.java
去除列检查字段
This commit is contained in:
parent
73a54c42f1
commit
a8ec3af387
@ -558,26 +558,6 @@ public class CassandraReaderHelper {
|
|||||||
String.format(
|
String.format(
|
||||||
"配置信息有错误.列信息中需要包含'%s'字段 .",Key.COLUMN_NAME));
|
"配置信息有错误.列信息中需要包含'%s'字段 .",Key.COLUMN_NAME));
|
||||||
}
|
}
|
||||||
if( name.startsWith(Key.WRITE_TIME) ) {
|
|
||||||
String colName = name.substring(Key.WRITE_TIME.length(),name.length() - 1 );
|
|
||||||
ColumnMetadata col = tableMetadata.getColumn(colName);
|
|
||||||
if( col == null ) {
|
|
||||||
throw DataXException
|
|
||||||
.asDataXException(
|
|
||||||
CassandraReaderErrorCode.CONF_ERROR,
|
|
||||||
String.format(
|
|
||||||
"配置信息有错误.列'%s'不存在 .",colName));
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
ColumnMetadata col = tableMetadata.getColumn(name);
|
|
||||||
if( col == null ) {
|
|
||||||
throw DataXException
|
|
||||||
.asDataXException(
|
|
||||||
CassandraReaderErrorCode.CONF_ERROR,
|
|
||||||
String.format(
|
|
||||||
"配置信息有错误.列'%s'不存在 .",name));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user