Package io.trino.sql

Class NodeUtils


  • public final class NodeUtils
    extends Object
    • Method Detail

      • throwOnDefaultProperty

        public static void throwOnDefaultProperty​(Collection<Property> properties,
                                                  String statementType)
        Throws an exception if properties contains a Property set 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.

        statementType is a String indicating the type of the statement, e.g. "CREATE TABLE", "ANALYZE", "ALTER TABLE ... ADD COLUMN ...".