Skip to content

Commit db304f5

Browse files
authored
Merge pull request #273 from Dtenwolde/main
Format fix
2 parents f27ae41 + 5d4dd41 commit db304f5

File tree

8 files changed

+25
-33
lines changed

8 files changed

+25
-33
lines changed

src/core/functions/scalar/iterativelength2.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,9 @@ static void IterativeLength2Function(DataChunk &args, ExpressionState &state, Ve
134134
// Register functions
135135
//------------------------------------------------------------------------------
136136
void CoreScalarFunctions::RegisterIterativeLength2ScalarFunction(ExtensionLoader &loader) {
137-
loader.RegisterFunction(
138-
ScalarFunction("iterativelength2",
139-
{LogicalType::INTEGER, LogicalType::BIGINT, LogicalType::BIGINT, LogicalType::BIGINT},
140-
LogicalType::BIGINT, IterativeLength2Function,
141-
IterativeLengthFunctionData::IterativeLengthBind));
137+
loader.RegisterFunction(ScalarFunction(
138+
"iterativelength2", {LogicalType::INTEGER, LogicalType::BIGINT, LogicalType::BIGINT, LogicalType::BIGINT},
139+
LogicalType::BIGINT, IterativeLength2Function, IterativeLengthFunctionData::IterativeLengthBind));
142140
}
143141

144142
} // namespace duckdb

src/core/functions/scalar/iterativelength_bidirectional.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,10 @@ static void IterativeLengthBidirectionalFunction(DataChunk &args, ExpressionStat
157157
// Register functions
158158
//------------------------------------------------------------------------------
159159
void CoreScalarFunctions::RegisterIterativeLengthBidirectionalScalarFunction(ExtensionLoader &loader) {
160-
loader.RegisterFunction(
161-
ScalarFunction("iterativelengthbidirectional",
162-
{LogicalType::INTEGER, LogicalType::BIGINT, LogicalType::BIGINT, LogicalType::BIGINT},
163-
LogicalType::BIGINT, IterativeLengthBidirectionalFunction,
164-
IterativeLengthFunctionData::IterativeLengthBind));
160+
loader.RegisterFunction(ScalarFunction(
161+
"iterativelengthbidirectional",
162+
{LogicalType::INTEGER, LogicalType::BIGINT, LogicalType::BIGINT, LogicalType::BIGINT}, LogicalType::BIGINT,
163+
IterativeLengthBidirectionalFunction, IterativeLengthFunctionData::IterativeLengthBind));
165164
}
166165

167166
} // namespace duckdb

src/core/functions/scalar/local_clustering_coefficient.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,9 @@ static void LocalClusteringCoefficientFunction(DataChunk &args, ExpressionState
7575
// Register functions
7676
//------------------------------------------------------------------------------
7777
void CoreScalarFunctions::RegisterLocalClusteringCoefficientScalarFunction(ExtensionLoader &loader) {
78-
loader.RegisterFunction(
79-
ScalarFunction("local_clustering_coefficient", {LogicalType::INTEGER, LogicalType::BIGINT},
80-
LogicalType::FLOAT, LocalClusteringCoefficientFunction,
81-
LocalClusteringCoefficientFunctionData::LocalClusteringCoefficientBind));
78+
loader.RegisterFunction(ScalarFunction("local_clustering_coefficient", {LogicalType::INTEGER, LogicalType::BIGINT},
79+
LogicalType::FLOAT, LocalClusteringCoefficientFunction,
80+
LocalClusteringCoefficientFunctionData::LocalClusteringCoefficientBind));
8281
}
8382

8483
} // namespace duckdb

src/core/functions/scalar/pagerank.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,8 @@ static void PageRankFunction(DataChunk &args, ExpressionState &state, Vector &re
114114
// Register functions
115115
//------------------------------------------------------------------------------
116116
void CoreScalarFunctions::RegisterPageRankScalarFunction(ExtensionLoader &loader) {
117-
loader.RegisterFunction(ScalarFunction("pagerank", {LogicalType::INTEGER, LogicalType::BIGINT},
118-
LogicalType::DOUBLE, PageRankFunction,
119-
PageRankFunctionData::PageRankBind));
117+
loader.RegisterFunction(ScalarFunction("pagerank", {LogicalType::INTEGER, LogicalType::BIGINT}, LogicalType::DOUBLE,
118+
PageRankFunction, PageRankFunctionData::PageRankBind));
120119
}
121120

122121
} // namespace duckdb

src/core/functions/scalar/reachability.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -257,11 +257,10 @@ static void ReachabilityFunction(DataChunk &args, ExpressionState &state, Vector
257257
// Register functions
258258
//------------------------------------------------------------------------------
259259
void CoreScalarFunctions::RegisterReachabilityScalarFunction(ExtensionLoader &loader) {
260-
loader.RegisterFunction(ScalarFunction("reachability",
261-
{LogicalType::INTEGER, LogicalType::BOOLEAN, LogicalType::BIGINT,
262-
LogicalType::BIGINT, LogicalType::BIGINT},
263-
LogicalType::BOOLEAN, ReachabilityFunction,
264-
IterativeLengthFunctionData::IterativeLengthBind));
260+
loader.RegisterFunction(ScalarFunction(
261+
"reachability",
262+
{LogicalType::INTEGER, LogicalType::BOOLEAN, LogicalType::BIGINT, LogicalType::BIGINT, LogicalType::BIGINT},
263+
LogicalType::BOOLEAN, ReachabilityFunction, IterativeLengthFunctionData::IterativeLengthBind));
265264
}
266265

267266
} // namespace duckdb

src/core/functions/scalar/shortest_path.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -210,11 +210,10 @@ static void ShortestPathFunction(DataChunk &args, ExpressionState &state, Vector
210210
// Register functions
211211
//------------------------------------------------------------------------------
212212
void CoreScalarFunctions::RegisterShortestPathScalarFunction(ExtensionLoader &loader) {
213-
loader.RegisterFunction(
214-
ScalarFunction("shortestpath",
215-
{LogicalType::INTEGER, LogicalType::BIGINT, LogicalType::BIGINT, LogicalType::BIGINT},
216-
LogicalType::LIST(LogicalType::BIGINT), ShortestPathFunction,
217-
IterativeLengthFunctionData::IterativeLengthBind));
213+
loader.RegisterFunction(ScalarFunction(
214+
"shortestpath", {LogicalType::INTEGER, LogicalType::BIGINT, LogicalType::BIGINT, LogicalType::BIGINT},
215+
LogicalType::LIST(LogicalType::BIGINT), ShortestPathFunction,
216+
IterativeLengthFunctionData::IterativeLengthBind));
218217
}
219218

220219
} // namespace duckdb

src/core/functions/scalar/weakly_connected_component.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,9 @@ static void WeaklyConnectedComponentFunction(DataChunk &args, ExpressionState &s
107107
// Register functions
108108
//------------------------------------------------------------------------------
109109
void CoreScalarFunctions::RegisterWeaklyConnectedComponentScalarFunction(ExtensionLoader &loader) {
110-
loader.RegisterFunction(
111-
ScalarFunction("weakly_connected_component", {LogicalType::INTEGER, LogicalType::BIGINT},
112-
LogicalType::BIGINT, WeaklyConnectedComponentFunction,
113-
WeaklyConnectedComponentFunctionData::WeaklyConnectedComponentBind));
110+
loader.RegisterFunction(ScalarFunction("weakly_connected_component", {LogicalType::INTEGER, LogicalType::BIGINT},
111+
LogicalType::BIGINT, WeaklyConnectedComponentFunction,
112+
WeaklyConnectedComponentFunctionData::WeaklyConnectedComponentBind));
114113
}
115114

116115
} // namespace duckdb

src/core/parser/duckpgq_parser.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ ParserExtensionPlanResult duckpgq_find_select_statement(SQLStatement *statement,
105105
return {};
106106
}
107107

108-
for (auto const& kv_pair : cte_map->map) {
109-
auto const& cte = kv_pair.second;
108+
for (auto const &kv_pair : cte_map->map) {
109+
auto const &cte = kv_pair.second;
110110

111111
auto *cte_select_statement = dynamic_cast<SelectStatement *>(cte->query.get());
112112
if (!cte_select_statement) {

0 commit comments

Comments
 (0)