File tree Expand file tree Collapse file tree 4 files changed +87
-79
lines changed Expand file tree Collapse file tree 4 files changed +87
-79
lines changed Original file line number Diff line number Diff line change @@ -8,3 +8,9 @@ TabWidth: 2
8
8
9
9
# No tabs
10
10
UseTab : Never
11
+
12
+ # Don't automatically derive the alignment of & and *
13
+ DerivePointerAlignment : false
14
+
15
+ # Always align pointer and reference to the right
16
+ PointerAlignment : Right
Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ void BindNodeVisitor::Visit(expression::FunctionExpression *expr) {
203
203
// we have to do the string comparison to find out the corresponding
204
204
// DatePartType when scanning every tuple.
205
205
auto func_name = expr->GetFuncName ();
206
- if (func_name == " date_trunc" or func_name == " extract" ) {
206
+ if (func_name == " date_trunc" || func_name == " extract" ) {
207
207
// Check the type of the first argument. Should be VARCHAR
208
208
auto date_part = expr->GetChild (0 );
209
209
if (date_part->GetValueType () != type::TypeId::VARCHAR) {
Original file line number Diff line number Diff line change @@ -377,6 +377,8 @@ struct Modulo : public TypeSystem::BinaryOperator {
377
377
};
378
378
379
379
// DateTrunc
380
+ // TODO(lma): Move this to the Timestamp type once the function lookup logic is
381
+ // corrected.
380
382
struct DateTrunc : public TypeSystem ::BinaryOperator {
381
383
bool SupportsTypes (const Type &left_type,
382
384
const Type &right_type) const override {
You can’t perform that action at this time.
0 commit comments