Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion service/trino-verifier/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<properties>
<air.main.basedir>${project.parent.basedir}</air.main.basedir>
<main-class>io.trino.verifier.PrestoVerifier</main-class>
<main-class>io.trino.verifier.TrinoVerifier</main-class>
</properties>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@

import picocli.CommandLine;

public final class PrestoVerifier
public final class TrinoVerifier
{
private PrestoVerifier() {}
private TrinoVerifier() {}

public static void main(String[] args)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import static io.airlift.event.client.EventBinder.eventBinder;
import static io.airlift.json.JsonCodecBinder.jsonCodecBinder;

public class PrestoVerifierModule
public class TrinoVerifierModule
extends AbstractConfigurationAwareModule
{
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ private QueryResult executeQuery(String url, String username, String password, Q
(e.getCause() instanceof Exception)) {
exception = (Exception) e.getCause();
}
State state = isPrestoQueryInvalid(e) ? State.INVALID : State.FAILED;
State state = isTrinoQueryInvalid(e) ? State.INVALID : State.FAILED;
return new QueryResult(state, exception, nanosSince(start), queryCpuTime, queryId, ImmutableList.of(), ImmutableList.of());
}
catch (VerifierException e) {
Expand Down Expand Up @@ -578,7 +578,7 @@ private void trySetConnectionProperties(Query query, Connection connection)
}
}

private static boolean isPrestoQueryInvalid(SQLException e)
private static boolean isTrinoQueryInvalid(SQLException e)
{
for (Throwable t = e.getCause(); t != null; t = t.getCause()) {
if (t.toString().contains(".SemanticException:")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public void run()

ImmutableList.Builder<Module> builder = ImmutableList.<Module>builder()
.add(new JsonModule())
.add(new PrestoVerifierModule())
.add(new TrinoVerifierModule())
.add(new DataSourceModule(this))
.addAll(getAdditionalModules());

Expand Down