Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,046 for recur2 (0.07 sec)

  1. src/bufio/bufio_test.go

    	w.Reset(&buf4)
    	w2 := NewWriter(w)
    	w2.WriteString("recur")
    	w2.Flush()
    	if buf4.String() != "recur" {
    		t.Errorf("buf4 = %q, want %q", buf4.String(), "recur")
    	}
    	w.Reset(&buf5)
    	w2.Reset(w)
    	w2.WriteString("recur2")
    	w2.Flush()
    	if buf5.String() != "recur2" {
    		t.Errorf("buf5 = %q, want %q", buf5.String(), "recur2")
    	}
    }
    
    func TestReaderDiscard(t *testing.T) {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Nov 01 21:52:12 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  2. internal/s3select/csv/record.go

    				// 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)
    	}
    
    	if index >= int64(len(r.csvRecord)) {
    		// No value found for column 'name', hence return null
    		// value
    		return sql.FromNull(), nil
    	}
    
    	return sql.FromBytes([]byte(r.csvRecord[index])), nil
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. internal/s3select/simdj/record.go

    }
    
    // Reset the record.
    func (r *Record) Reset() {
    	r.object = simdjson.Object{}
    }
    
    // Clone the record and if possible use the destination provided.
    func (r *Record) Clone(dst sql.Record) sql.Record {
    	other, ok := dst.(*Record)
    	if !ok {
    		other = &Record{}
    	}
    	other.object = r.object
    	return other
    }
    
    // CloneTo clones the record to a json Record.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  4. internal/s3select/json/record.go

    func (r *Record) Reset() {
    	if len(r.KVS) > 0 {
    		r.KVS = r.KVS[:0]
    	}
    }
    
    // Clone the record and if possible use the destination provided.
    func (r *Record) Clone(dst sql.Record) sql.Record {
    	other, ok := dst.(*Record)
    	if !ok {
    		other = &Record{}
    	}
    	if len(other.KVS) > 0 {
    		other.KVS = other.KVS[:0]
    	}
    	other.KVS = append(other.KVS, r.KVS...)
    	return other
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  5. tests/transaction_test.go

    			t.Fatalf("Should find saved record")
    		}
    		return nil
    	}); err != nil {
    		t.Fatalf("no error should return, but got %v", err)
    	}
    
    	if err := DB.First(&User{}, "name = ?", user.Name).Error; err != nil {
    		t.Fatalf("Should find saved record")
    	}
    
    	if err := DB.First(&User{}, "name = ?", user1.Name).Error; err == nil {
    		t.Fatalf("Should not find rollbacked record")
    	}
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Sat Sep 14 12:58:29 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  6. internal/config/dns/etcd_dns.go

    		if err != nil {
    			return nil, err
    		}
    		// Make sure we have record.Key is empty
    		// this can only happen when record.Key
    		// has bucket entry with exact prefix
    		// match any record.Key which do not
    		// match the prefixes we skip them.
    		for _, record := range records {
    			if record.Key != "" {
    				continue
    			}
    			srvRecords = append(srvRecords, record)
    		}
    	}
    	if len(srvRecords) == 0 {
    		return nil, ErrNoEntriesFound
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 26 15:03:08 UTC 2024
    - 8K bytes
    - Viewed (0)
  7. internal/s3select/sql/evaluate.go

    		if err != nil {
    			return nil, err
    		}
    		return FromBytes(bs), nil
    	case []Value:
    		return FromArray(rval), nil
    	case nil:
    		return FromNull(), nil
    	case Missing:
    		return FromMissing(), nil
    	}
    	return nil, fmt.Errorf("Unhandled value type: %T", result)
    }
    
    func (e *PrimaryTerm) evalNode(r Record, tableAlias string) (res *Value, err error) {
    	switch {
    	case e.Value != nil:
    		return e.Value.evalNode(r)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 12K bytes
    - Viewed (0)
  8. tensorflow/c/c_api_function.cc

        return;
      }
    
      tensorflow::mutex_lock l(g->mu);
      status->status = g->graph.AddFunctionDef(func->record->fdef(),
                                               func->record->stack_traces());
      if (TF_GetCode(status) != TF_OK) return;
      if (!grad) return;
    
      status->status = g->graph.AddFunctionDef(grad->record->fdef(),
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 16:27:48 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  9. internal/s3select/sql/statement.go

    			for i, val := range v {
    				tmpRec := input.Clone(nil)
    				if err = tmpRec.Replace(val); err != nil {
    					return nil, err
    				}
    				recs[i] = &tmpRec
    			}
    			return recs, nil
    
    		default:
    			input.Reset()
    			input, err = input.Set("_1", &Value{value: v})
    			if err != nil {
    				return nil, err
    			}
    		}
    		return []*Record{&input}, nil
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  10. internal/s3select/select.go

    		return nil
    	}
    	if *s.Start > *s.End {
    		return errors.New("ScanRange: Start cannot be after end")
    	}
    	return nil
    }
    
    // StartLen returns start offset plus length from range.
    func (s *ScanRange) StartLen() (start, length int64, err error) {
    	if s == nil {
    		return 0, -1, nil
    	}
    	err = s.Validate()
    	if err != nil {
    		return 0, 0, err
    	}
    
    	if s.End == nil && s.Start == 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)
Back to top