Search in sources :

Example 1 with NullOrdering

use of org.apache.hadoop.hive.ql.util.NullOrdering in project hive by apache.

the class SemanticAnalyzer method createSortOrderForUpdateDelete.

// SORT BY ROW__ID ASC
private void createSortOrderForUpdateDelete(List<ExprNodeDesc> sortCols, StringBuilder sortOrder, StringBuilder nullSortOrder) {
    NullOrdering defaultNullOrder = NullOrdering.defaultNullOrder(conf);
    for (int i = 0; i < sortCols.size(); i++) {
        sortOrder.append(DirectionUtils.codeToSign(DirectionUtils.ASCENDING_CODE));
        nullSortOrder.append(defaultNullOrder.getSign());
    }
}
Also used : NullOrdering(org.apache.hadoop.hive.ql.util.NullOrdering) SQLUniqueConstraint(org.apache.hadoop.hive.metastore.api.SQLUniqueConstraint) SQLCheckConstraint(org.apache.hadoop.hive.metastore.api.SQLCheckConstraint) SQLDefaultConstraint(org.apache.hadoop.hive.metastore.api.SQLDefaultConstraint) DefaultConstraint(org.apache.hadoop.hive.ql.metadata.DefaultConstraint) SQLNotNullConstraint(org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint)

Aggregations

SQLCheckConstraint (org.apache.hadoop.hive.metastore.api.SQLCheckConstraint)1 SQLDefaultConstraint (org.apache.hadoop.hive.metastore.api.SQLDefaultConstraint)1 SQLNotNullConstraint (org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint)1 SQLUniqueConstraint (org.apache.hadoop.hive.metastore.api.SQLUniqueConstraint)1 DefaultConstraint (org.apache.hadoop.hive.ql.metadata.DefaultConstraint)1 NullOrdering (org.apache.hadoop.hive.ql.util.NullOrdering)1