public static Quotation from(Configuration configuration) {
    String supportedQIds;
    if (configuration == null) {
      supportedQIds = HiveConf.ConfVars.HIVE_QUOTEDID_SUPPORT.defaultStrVal;
    } else {
      supportedQIds = HiveConf.getVar(configuration, HiveConf.ConfVars.HIVE_QUOTEDID_SUPPORT);
    }

    for (Quotation quotation : values()) {
      if (quotation.stringValue.equalsIgnoreCase(supportedQIds)) {
        return quotation;
      }
    }

    throw new EnumConstantNotPresentException(Quotation.class,
        "Option not recognized for " + HiveConf.ConfVars.HIVE_QUOTEDID_SUPPORT.varname + "value: " + supportedQIds);
  }
SQL standard way to quote identifiers.
Use double quotes to quote identifiers having special characters and single quotes for string literals.
parser/src/java/org/apache/hadoop/hive/ql/parse/Quotation.java