Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 183 for Column (0.19 sec)

  1. 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)
  2. internal/s3select/parquet/reader.go

    	if !ok {
    		dstRec = &jsonfmt.Record{}
    	}
    	dstRec.SelectFormat = sql.SelectFmtParquet
    	dstRec.KVS = kvs
    	return dstRec, nil
    }
    
    // convertFromAnnotation - converts values based on the Parquet column's type
    // annotations. LogicalType annotations if present override the deprecated
    // ConvertedType annotations. Ref:
    // https://github.com/apache/parquet-format/blob/master/LogicalTypes.md
    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)
  3. 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)
  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/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)
  6. 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)
  7. 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)
  8. cmd/naughty-disk_test.go

    func (d *naughtyDisk) StatVol(ctx context.Context, volume string) (vol VolInfo, err error) {
    	if err := d.calcError(); err != nil {
    		return VolInfo{}, err
    	}
    	return d.disk.StatVol(ctx, volume)
    }
    
    func (d *naughtyDisk) DeleteVol(ctx context.Context, volume string, forceDelete bool) (err error) {
    	if err := d.calcError(); err != nil {
    		return err
    	}
    	return d.disk.DeleteVol(ctx, volume, forceDelete)
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  9. cmd/xl-storage-disk-id-check.go

    	ctx, done, err := p.TrackDiskHealth(ctx, storageMetricDeleteVol, volume)
    	if err != nil {
    		return err
    	}
    	defer done(&err)
    
    	w := xioutil.NewDeadlineWorker(globalDriveConfig.GetMaxTimeout())
    	return w.Run(func() error { return p.storage.DeleteVol(ctx, volume, forceDelete) })
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 33K bytes
    - Viewed (0)
  10. cmd/bitrot-whole.go

    }
    
    // Returns whole-file bitrot writer.
    func newWholeBitrotWriter(disk StorageAPI, volume, filePath string, algo BitrotAlgorithm, shardSize int64) io.WriteCloser {
    	return &wholeBitrotWriter{disk, volume, filePath, shardSize, algo.New()}
    }
    
    // Implementation to verify bitrot for the whole file.
    type wholeBitrotReader struct {
    	disk       StorageAPI
    	volume     string
    	filePath   string
    	verifier   *BitrotVerifier // Holds the bit-rot info
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Jan 31 02:11:45 GMT 2024
    - 2.7K bytes
    - Viewed (0)
Back to top