(preds []parquetquery.Predicate)
| 2909 | } |
| 2910 | |
| 2911 | func orIfNeeded(preds []parquetquery.Predicate) parquetquery.Predicate { |
| 2912 | switch len(preds) { |
| 2913 | case 0: |
| 2914 | return nil |
| 2915 | case 1: |
| 2916 | return preds[0] |
| 2917 | default: |
| 2918 | return parquetquery.NewOrPredicate(preds...) |
| 2919 | } |
| 2920 | } |
| 2921 | |
| 2922 | // unsafeToString casts a byte slice to a string w/o allocating |
| 2923 | func unsafeToString(b []byte) string { |
no test coverage detected