forked from heavyai/heavydb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Misiu Godfrey <misiu.godfrey@kraken.mapd.com>
- Loading branch information
1 parent
6525f2d
commit 047af0e
Showing
6 changed files
with
128 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
java/calcite/src/main/java/com/mapd/parser/extension/ddl/SqlEvaluateModel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package com.mapd.parser.extension.ddl; | ||
|
||
import com.google.gson.annotations.Expose; | ||
import com.mapd.parser.extension.ddl.heavydb.HeavyDBOptionsMap; | ||
|
||
import org.apache.calcite.sql.SqlKind; | ||
import org.apache.calcite.sql.SqlNode; | ||
import org.apache.calcite.sql.SqlOperator; | ||
import org.apache.calcite.sql.SqlSpecialOperator; | ||
import org.apache.calcite.sql.parser.SqlParserPos; | ||
|
||
/** | ||
* Class that encapsulates all information associated with a EVALUATE MODEL DDL command. | ||
*/ | ||
public class SqlEvaluateModel extends SqlCustomDdl { | ||
private static final SqlOperator OPERATOR = | ||
new SqlSpecialOperator("EVALUATE_MODEL", SqlKind.OTHER_DDL); | ||
|
||
@Expose | ||
private String modelName; | ||
@Expose | ||
private String query; | ||
@Expose | ||
private HeavyDBOptionsMap options; | ||
|
||
public SqlEvaluateModel(final SqlParserPos pos, final String modelName, SqlNode query) { | ||
super(OPERATOR, pos); | ||
this.modelName = modelName; | ||
this.query = query.toString(); | ||
} | ||
} |