Skip to content

Commit 554f613

Browse files
DX-105463: Fix clang-format violations in TimestampIR, engine, generator, and test files
1 parent 0f4fe4f commit 554f613

5 files changed

Lines changed: 147 additions & 159 deletions

File tree

cpp/src/gandiva/engine.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@
107107

108108
#include "gandiva/configuration.h"
109109
#include "gandiva/decimal_ir.h"
110-
#include "gandiva/timestamp_ir.h"
111110
#include "gandiva/exported_funcs.h"
112111
#include "gandiva/exported_funcs_registry.h"
112+
#include "gandiva/timestamp_ir.h"
113113

114114
namespace gandiva {
115115

cpp/src/gandiva/llvm_generator.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525
#include "gandiva/bitmap_accumulator.h"
2626
#include "gandiva/decimal_ir.h"
2727
#include "gandiva/dex.h"
28-
#include "gandiva/timestamp_ir.h"
2928
#include "gandiva/expr_decomposer.h"
3029
#include "gandiva/expression.h"
3130
#include "gandiva/llvm_types.h"
3231
#include "gandiva/lvalue.h"
32+
#include "gandiva/timestamp_ir.h"
3333

3434
namespace gandiva {
3535

cpp/src/gandiva/precompiled/time.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -445,11 +445,11 @@ EXTRACT_HOUR_TIME(time32)
445445
#define DATE_TRUNC_FIXED_UNIT(NAME, TYPE, NMILLIS_IN_UNIT) \
446446
FORCE_INLINE \
447447
gdv_##TYPE NAME##_##TYPE(gdv_##TYPE millis) { \
448-
/* Use floor division to correctly handle negative timestamps (pre-epoch). */ \
449-
/* C++ integer division truncates toward zero; we need toward negative inf. */ \
448+
/* Use floor division to correctly handle negative timestamps (pre-epoch). */ \
449+
/* C++ integer division truncates toward zero; we need toward negative inf. */ \
450450
gdv_##TYPE q = millis / NMILLIS_IN_UNIT; \
451451
gdv_##TYPE r = millis % NMILLIS_IN_UNIT; \
452-
if (r != 0 && (millis ^ NMILLIS_IN_UNIT) < 0) { \
452+
if (r != 0 && (millis ^ NMILLIS_IN_UNIT) < 0) { \
453453
--q; \
454454
} \
455455
return q * NMILLIS_IN_UNIT; \

0 commit comments

Comments
 (0)