Github user anoopsharma00 commented on a diff in the pull request:
https://github.com/apache/incubator-trafodion/pull/1009#discussion_r106193525
--- Diff: core/sql/common/CharType.cpp ---
@@ -967,6 +972,28 @@ SQLVarChar::SQLVarChar(const CharLenInfo & maxLenInfo,
{}
// -----------------------------------------------------------------------
+// Equality comparison
+// -----------------------------------------------------------------------
+NABoolean SQLVarChar::operator==(const NAType& other) const
+{
+ NABoolean compResult = FALSE; // false, failed. true, passed.
+
+ // if this or other was originally a hive string type, then
+ // do not compare lengths.
+ if ((wasHiveString()) ||
+ ((other.getTypeName() == LiteralVARCHAR) &&
+ (((SQLVarChar&)other).wasHiveString())))
--- End diff --
literalVARCHAR is used for all sql varchar datatypes.
The bytesPerChar and character set parameters to the char
classes defined in common/CharType.h determine what
kind of char datatype it is.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---