class LogicalTypeChecks {

	public static boolean isCompositeType(LogicalType logicalType) {
		if (logicalType instanceof DistinctType) {
			return isCompositeType(((DistinctType) logicalType).getSourceType());
		}

		LogicalTypeRoot typeRoot = logicalType.getTypeRoot();
		return typeRoot == LogicalTypeRoot.STRUCTURED_TYPE || typeRoot == LogicalTypeRoot.ROW;
	}

	private  LogicalTypeChecks();

}