Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for _columns (0.18 sec)

  1. internal/s3select/parquet/reader.go

    	nextRow, err := pr.r.NextRow()
    	if err != nil {
    		if err == io.EOF {
    			return nil, err
    		}
    		return nil, errParquetParsingError(err)
    	}
    
    	kvs := jstream.KVS{}
    	for _, col := range pr.r.Columns() {
    
    		var value interface{}
    		if v, ok := nextRow[col.FlatName()]; ok {
    			value, err = convertFromAnnotation(col.Element(), v)
    			if err != nil {
    				return nil, errParquetParsingError(err)
    			}
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 14 13:54:47 GMT 2022
    - 4.5K bytes
    - Viewed (0)
  2. internal/s3select/simdj/record.go

    	"github.com/minio/minio/internal/s3select/sql"
    	"github.com/minio/simdjson-go"
    )
    
    // Record - is JSON record.
    type Record struct {
    	// object
    	object simdjson.Object
    }
    
    // Get - gets the value for a column name.
    func (r *Record) Get(name string) (*sql.Value, error) {
    	elem := r.object.FindKey(name, nil)
    	if elem == nil {
    		return nil, nil
    	}
    	return iterToValue(elem.Iter)
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 5.4K bytes
    - Viewed (0)
  3. cmd/api-errors.go

    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrEvaluatorBindingDoesNotExist: {
    		Code:           "ErrEvaluatorBindingDoesNotExist",
    		Description:    "A column name or a path provided does not exist in the SQL expression",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrMissingHeaders: {
    		Code:           "MissingHeaders",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 91.4K bytes
    - Viewed (7)
  4. internal/s3select/csv/reader.go

    				r.err = errCSVParsingError(err)
    				return errCSVParsingError(err)
    			}
    			return err
    		}
    
    		if r.args.FileHeaderInfo == use {
    			// Copy column names since records will be reused.
    			columns := append(make([]string, 0, len(record)), record...)
    			r.columnNames = columns
    		}
    	}
    
    	r.bufferPool.New = func() interface{} {
    		return make([]byte, csvSplitSize+1024)
    	}
    
    	// Return first block
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  5. internal/s3select/csv/record.go

    			if err != nil {
    				return nil, fmt.Errorf("column %v not found", name)
    			}
    			// The position count starts at 1.
    			idx--
    			if idx >= len(r.csvRecord) || idx < 0 {
    				// If field index > number of columns, return null
    				return sql.FromNull(), nil
    			}
    			return sql.FromBytes([]byte(r.csvRecord[idx])), nil
    		}
    		// TODO: Return Missing?
    		return nil, fmt.Errorf("column %v not found", name)
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Sep 13 00:00:59 GMT 2022
    - 4.1K bytes
    - Viewed (0)
  6. cmd/batch-expire.go

    	type purge BatchJobExpirePurge
    	var tmp purge
    	err := val.Decode(&tmp)
    	if err != nil {
    		return err
    	}
    
    	*p = BatchJobExpirePurge(tmp)
    	p.line, p.col = val.Line, val.Column
    	return nil
    }
    
    // Validate returns nil if value is valid, ie > 0.
    func (p BatchJobExpirePurge) Validate() error {
    	if p.RetainVersions < 0 {
    		return BatchJobYamlErr{
    			line: p.line,
    			col:  p.col,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 21K bytes
    - Viewed (1)
  7. internal/s3select/sql/record.go

    // WriteCSVOpts - encapsulates options for Select CSV output
    type WriteCSVOpts struct {
    	FieldDelimiter rune
    	Quote          rune
    	QuoteEscape    rune
    	AlwaysQuote    bool
    }
    
    // Record - is a type containing columns and their values.
    type Record interface {
    	Get(name string) (*Value, error)
    
    	// Set a value.
    	// Can return a different record type.
    	Set(name string, value *Value) (Record, error)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 3.4K bytes
    - Viewed (0)
  8. internal/s3select/select_test.go

    		wantResult string
    	}{
    		{
    			name:  "Select a column containing dot",
    			query: `select "na.me" from S3Object s`,
    			wantResult: `apple
    mango`,
    		},
    		{
    			name:       "Select column containing dot with table name prefix",
    			query:      `select count(S3Object."na.me") from S3Object`,
    			wantResult: `2`,
    		},
    		{
    			name:  "Select column containing dot with table alias prefix",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 76.2K bytes
    - Viewed (0)
  9. internal/s3select/json/record.go

    	return b, nil
    }
    
    // Record - is JSON record.
    type Record struct {
    	// Used in Set(), Marshal*()
    	KVS jstream.KVS
    
    	SelectFormat sql.SelectObjectFormat
    }
    
    // Get - gets the value for a column name.
    func (r *Record) Get(name string) (*sql.Value, error) {
    	// Get is implemented directly in the sql package.
    	return nil, errors.New("not implemented here")
    }
    
    // Reset the record.
    func (r *Record) Reset() {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Feb 25 20:31:19 GMT 2022
    - 5.2K bytes
    - Viewed (0)
  10. internal/s3select/sql/statement.go

    	err = stmt.selectQProp.err
    	if err != nil {
    		err = errQueryAnalysisFailure(err)
    	}
    
    	// Set table alias
    	stmt.tableAlias = selectAST.From.As
    	// Remove quotes from column aliases
    	if selectAST.Expression != nil {
    		for _, exp := range selectAST.Expression.Expressions {
    			if strings.HasSuffix(exp.As, "'") && strings.HasPrefix(exp.As, "'") && len(exp.As) >= 2 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 09 17:19:11 GMT 2024
    - 8.9K bytes
    - Viewed (0)
Back to top