// Path: src/main/java/core/utils/TypeUtils.java
// public enum TYPE {
// 	BOOLEAN, INT, LONG, DOUBLE, STRING, DATE, VARCHAR
// };


import core.utils.TypeUtils.TYPE;

	@Override
	public String toString() {
		String ret = "";
		for (int i = 0; i < this.fields.length; i++) {
			ret += this.fields[i].toString();
			if (i != this.fields.length - 1) {
				ret += ",";
			}
		}
		return ret;
	}

	public TYPE[] getTypeArray() {
		TYPE[] typeArray = new TYPE[fields.length];
		for (int i=0; i<fields.length; i++) {
			typeArray[i] = fields[i].type;
		}
		return typeArray;
	}

	public static Schema createSchema(String schemaString) {
		System.out.println(schemaString);
		String[] columns = schemaString.split(",");
		Field[] fieldList = new Field[columns.length];

		for (int i = 0; i < columns.length; i++) {
			String[] columnInfo = columns[i].trim().split(" ");
			String fieldName = columnInfo[0].trim();
			// enum valueOf is case sensitive, make everything uppercase.
// Path: src/main/java/core/utils/TypeUtils.java
// public enum TYPE {
// 	BOOLEAN, INT, LONG, DOUBLE, STRING, DATE, VARCHAR
// };


// Path: src/main/java/core/common/globals/Schema.java
import core.utils.TypeUtils.TYPE;


	@Override
	public String toString() {
		String ret = "";
		for (int i = 0; i < this.fields.length; i++) {
			ret += this.fields[i].toString();
			if (i != this.fields.length - 1) {
				ret += ",";
			}
		}
		return ret;
	}

	public TYPE[] getTypeArray() {
		TYPE[] typeArray = new TYPE[fields.length];
		for (int i=0; i<fields.length; i++) {
			typeArray[i] = fields[i].type;
		}
		return typeArray;
	}

	public static Schema createSchema(String schemaString) {
		System.out.println(schemaString);
		String[] columns = schemaString.split(",");
		Field[] fieldList = new Field[columns.length];

		for (int i = 0; i < columns.length; i++) {
			String[] columnInfo = columns[i].trim().split(" ");
			String fieldName = columnInfo[0].trim();
			// enum valueOf is case sensitive, make everything uppercase.
			TYPE fieldType = TYPE.valueOf(columnInfo[1].trim().toUpperCase());