(preds []parquetquery.Predicate)
| 3822 | } |
| 3823 | |
| 3824 | func orIfNeeded(preds []parquetquery.Predicate) parquetquery.Predicate { |
| 3825 | switch len(preds) { |
| 3826 | case 0: |
| 3827 | return nil |
| 3828 | case 1: |
| 3829 | return preds[0] |
| 3830 | default: |
| 3831 | return parquetquery.NewOrPredicate(preds...) |
| 3832 | } |
| 3833 | } |
| 3834 | |
| 3835 | // unsafeToString casts a byte slice to a string w/o allocating |
| 3836 | func unsafeToString(b []byte) string { |
no test coverage detected