public static boolean isValuesTempTable(String tableName) {
    return tableName.toLowerCase().startsWith(SemanticAnalyzer.VALUES_TMP_TABLE_NAME_PREFIX.toLowerCase());
  }
Check if the table is the temporary table created by VALUES() syntax
@param tableName table name
@return
ql/src/java/org/apache/hadoop/hive/ql/plan/PlanUtils.java