Skip to content

Commit 1202c2b

Browse files
committed
dd
1 parent fac8e60 commit 1202c2b

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

velox/common/file/tests/FaultyFileSystem.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ std::unique_ptr<ReadFile> FaultyFileSystem::openFileForRead(
5757
std::string_view path,
5858
const FileOptions& options) {
5959
const std::string delegatedPath = std::string(extractPath(path));
60-
auto delegatedFile = getFileSystem(
61-
delegatedPath, config_)->openFileForRead(delegatedPath, options);
60+
auto delegatedFile = getFileSystem(delegatedPath, config_)
61+
->openFileForRead(delegatedPath, options);
6262
return std::make_unique<FaultyReadFile>(
6363
std::string(path), std::move(delegatedFile), [&](FaultFileOperation* op) {
6464
maybeInjectFileFault(op);
@@ -70,7 +70,7 @@ std::unique_ptr<WriteFile> FaultyFileSystem::openFileForWrite(
7070
const FileOptions& options) {
7171
const std::string delegatedPath = std::string(extractPath(path));
7272
auto delegatedFile = getFileSystem(delegatedPath, config_)
73-
->openFileForWrite(delegatedPath, options);
73+
->openFileForWrite(delegatedPath, options);
7474
return std::make_unique<FaultyWriteFile>(
7575
std::string(path), std::move(delegatedFile), [&](FaultFileOperation* op) {
7676
maybeInjectFileFault(op);
@@ -115,8 +115,8 @@ std::vector<std::string> FaultyFileSystem::listFolders(std::string_view path) {
115115
const auto delegatedDirPath = extractPath(path);
116116
const auto delegatedFolders =
117117
getFileSystem(delegatedDirPath, config_)->listFolders(delegatedDirPath);
118-
// NOTE: we shall return the faulty folder paths instead of the delegated folder
119-
// paths for list result.
118+
// NOTE: we shall return the faulty folder paths instead of the delegated
119+
// folder paths for list result.
120120
std::vector<std::string> folders;
121121
folders.reserve(delegatedFolders.size());
122122
for (const auto& delegateFolder : delegatedFolders) {

velox/exec/fuzzer/PrestoQueryRunner.cpp

+6-3
Original file line numberDiff line numberDiff line change
@@ -504,13 +504,16 @@ std::optional<std::string> PrestoQueryRunner::toSql(
504504
std::dynamic_pointer_cast<connector::hive::HiveInsertTableHandle>(
505505
tableWriteNode->insertTableHandle()->connectorInsertTableHandle());
506506

507-
// Returns a CREATE sql with specified table properties from TableWriteNode, example sql:
508-
// CREATE TABLE tmp_write (c0 integer, c1 varchar, p0 varchar) WITH (PARTITIONED_BY = ARRAY['p0']);
507+
// Returns a CREATE sql with specified table properties from TableWriteNode,
508+
// example sql:
509+
// CREATE TABLE tmp_write (c0 integer, c1 varchar, p0 varchar)
510+
// WITH (PARTITIONED_BY = ARRAY['p0']);
509511
std::stringstream sql;
510512
sql << "CREATE TABLE tmp_write ( ";
511513
for (auto i = 0; i < tableWriteNode->columnNames().size(); ++i) {
512514
appendComma(i, sql);
513-
sql << tableWriteNode->columnNames()[i] << " " << toTypeSql(tableWriteNode->columns()->childAt(i));
515+
sql << tableWriteNode->columnNames()[i] << " "
516+
<< toTypeSql(tableWriteNode->columns()->childAt(i));
514517
if (insertTableHandle->inputColumns()[i]->isPartitionKey()) {
515518
partitionKeys.push_back(insertTableHandle->inputColumns()[i]->name());
516519
}

0 commit comments

Comments
 (0)