Package io.trino.sql
Class NodeUtils
- java.lang.Object
-
- io.trino.sql.NodeUtils
-
public final class NodeUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<SortItem>getSortItemsFromOrderBy(Optional<OrderBy> orderBy)static voidthrowOnDefaultProperty(Collection<Property> properties, String statementType)Throws an exception ifpropertiescontains aPropertyset to DEFAULT.
-
-
-
Method Detail
-
getSortItemsFromOrderBy
public static List<SortItem> getSortItemsFromOrderBy(Optional<OrderBy> orderBy)
-
throwOnDefaultProperty
public static void throwOnDefaultProperty(Collection<Property> properties, String statementType)
Throws an exception ifpropertiescontains aPropertyset to DEFAULT. This method is intended to be used when a user issues an SQL statement containing a property set to DEFAULT but setting a property to DEFAULT is not supported in that type of statement.statementTypeis aStringindicating the type of the statement, e.g. "CREATE TABLE", "ANALYZE", "ALTER TABLE ... ADD COLUMN ...".
-
-