Skip to content

Commit

Permalink
Old stores cannot read with new table infered through sdk.
Browse files Browse the repository at this point in the history
  • Loading branch information
ravipesala committed Sep 10, 2018
1 parent a9cc434 commit a8620fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Expand Up @@ -315,7 +315,7 @@ public void setParentColumnTableRelations(
if (other.columnName != null) {
return false;
}
} else if (!columnName.equals(other.columnName)) {
} else if (!columnName.equalsIgnoreCase(other.columnName)) {
return false;
}
if (dataType == null) {
Expand Down
Expand Up @@ -165,14 +165,15 @@ private static boolean isColumnMatches(boolean isTransactionalTable,
// column ID but can have same column name
if (tableColumn.getDataType().isComplexType() && !(tableColumn.getDataType().getId()
== DataTypes.ARRAY_TYPE_ID)) {
if (tableColumn.getColumnId().equals(queryColumn.getColumnId())) {
if (tableColumn.getColumnId().equalsIgnoreCase(queryColumn.getColumnId())) {
return true;
} else {
return isColumnMatchesStruct(tableColumn, queryColumn);
}
} else {
return (tableColumn.getColumnId().equals(queryColumn.getColumnId()) || (!isTransactionalTable
&& tableColumn.getColName().equals(queryColumn.getColName())));
return (tableColumn.getColumnId().equalsIgnoreCase(queryColumn.getColumnId()) || (
!isTransactionalTable && tableColumn.getColName()
.equalsIgnoreCase(queryColumn.getColName())));
}
}

Expand Down

0 comments on commit a8620fd

Please sign in to comment.