- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ParseSelectStatement (0.4 sec)
-
internal/s3select/sql/statement.go
// (otherwise -1) limitValue int64 // Count of rows that have been output. outputCount int64 // Table alias tableAlias string } // ParseSelectStatement - parses a select query from the given string // and analyzes it. func ParseSelectStatement(s string) (stmt SelectStatement, err error) { var selectAST Select err = SQLParser.ParseString(s, &selectAST) if err != nil { err = errQueryParseFailure(err)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 23 19:35:41 UTC 2024 - 8.9K bytes - Viewed (0) -
internal/s3select/sql/parser_test.go
t.Errorf("Expected 7 got %d", len(tokens)) } // for i, t := range tokens { // fmt.Printf("%d: %#v\n", i, t) // } } func TestParseSelectStatement(t *testing.T) { exp, err := ParseSelectStatement("select _3,_1,_2 as 'mytest' from S3object") if err != nil { t.Fatalf("parse alias sql error: %v", err) } if exp.selectAST.Expression.Expressions[2].As != "mytest" {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 9.2K bytes - Viewed (0) -
internal/s3select/select.go
} if parsedS3Select.Output.IsEmpty() { return errMissingRequiredParameter(fmt.Errorf("OutputSerialization must be provided")) } statement, err := sql.ParseSelectStatement(parsedS3Select.Expression) if err != nil { return err } parsedS3Select.statement = &statement *s3Select = S3Select(parsedS3Select) return nil }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun Sep 22 00:33:43 UTC 2024 - 21.2K bytes - Viewed (0)