Add JSON Path expression evaluation support (#7315)

- Includes support for FROM clause JSON path
This commit is contained in:
Aditya Manthramurthy
2019-03-09 08:13:37 -08:00
committed by Harshavardhana
parent b296b3cf8b
commit e463386921
15 changed files with 488 additions and 59 deletions

View File

@@ -16,6 +16,8 @@
package sql
import "fmt"
type s3Error struct {
code string
message string
@@ -91,7 +93,16 @@ func errQueryAnalysisFailure(err error) *s3Error {
func errBadTableName(err error) *s3Error {
return &s3Error{
code: "BadTableName",
message: "The table name is not supported",
message: fmt.Sprintf("The table name is not supported: %v", err),
statusCode: 400,
cause: err,
}
}
func errDataSource(err error) *s3Error {
return &s3Error{
code: "DataSourcePathUnsupported",
message: fmt.Sprintf("Data source: %v", err),
statusCode: 400,
cause: err,
}