mirror of
https://github.com/minio/minio.git
synced 2025-11-20 18:06:10 -05:00
Add JSON Path expression evaluation support (#7315)
- Includes support for FROM clause JSON path
This commit is contained in:
committed by
Harshavardhana
parent
b296b3cf8b
commit
e463386921
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user