Expressions: Sql expressions with Duckdb (#81666)
duckdb temp storage of dataframes using parquet and querying from sql expressions --------- Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
This commit is contained in:
co-authored by
Ryan McKinley
parent
d8b7992c0c
commit
70009201d4
@@ -324,6 +324,8 @@ const (
|
||||
TypeClassicConditions
|
||||
// TypeThreshold is the CMDType for checking if a threshold has been crossed
|
||||
TypeThreshold
|
||||
// TypeSQL is the CMDType for running SQL expressions
|
||||
TypeSQL
|
||||
)
|
||||
|
||||
func (gt CommandType) String() string {
|
||||
@@ -336,6 +338,8 @@ func (gt CommandType) String() string {
|
||||
return "resample"
|
||||
case TypeClassicConditions:
|
||||
return "classic_conditions"
|
||||
case TypeSQL:
|
||||
return "sql"
|
||||
default:
|
||||
return "unknown"
|
||||
}
|
||||
@@ -354,6 +358,8 @@ func ParseCommandType(s string) (CommandType, error) {
|
||||
return TypeClassicConditions, nil
|
||||
case "threshold":
|
||||
return TypeThreshold, nil
|
||||
case "sql":
|
||||
return TypeSQL, nil
|
||||
default:
|
||||
return TypeUnknown, fmt.Errorf("'%v' is not a recognized expression type", s)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user