diff --git a/src/QueryBuilder.php b/src/QueryBuilder.php index 701a3bc..37cc906 100644 --- a/src/QueryBuilder.php +++ b/src/QueryBuilder.php @@ -148,9 +148,7 @@ public function generateSelectFieldsProvided(string $bucket, array $columns): st $fields = []; foreach ($columns as $column) { - if (strpos($column, "(") === false) { - $fields[] = $bucket . "." . $column; - } + $fields[] = (strpos($column, "(") !== false) ? $column : $bucket . "." . $column; } return implode(",", $fields);