Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion fe/fe-core/src/main/java/org/apache/doris/catalog/View.java
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,14 @@ public String getSignature(int signatureVersion) {
sb.append(type);
sb.append(Util.getSchemaSignatureString(fullSchema));
sb.append(inlineViewDef);
sb.append(sqlMode);

// ATTN: sqlMode is missing when persist view, so we should not append it here.
//
// To keep compatible with the old version, without sqlMode, if the signature of views
// are the same, we think the should has the same sqlMode. (since the sqlMode doesn't
// effect the parsing of inlineViewDef, otherwise the parsing will fail),
//
// sb.append(sqlMode);
String md5 = DigestUtils.md5Hex(sb.toString());
if (LOG.isDebugEnabled()) {
LOG.debug("get signature of view {}: {}. signature string: {}", name, md5, sb.toString());
Expand Down