Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
kgyrtkirk committed May 27, 2024
1 parent 4595b0c commit ec2ecde
Show file tree
Hide file tree
Showing 5 changed files with 425 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ private static void main3(Object object) throws Exception
chk1();
chkStatus();

System.out.println("-------------------booted up-------------------");

lifecycle.join();
} else {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,27 +29,22 @@ public QuidemRecorder(PrintStream printStream)
{
this.printStream = printStream;
printStream.println("#started");
printStream.println("!connect druidtest:///");
DruidHook.register(DruidHook.SQL, this);
DruidHook.register(DruidHook.RESULTSET, this);
}

@Override
public void close()
{
DruidHook.unregister(DruidHook.SQL, this);
DruidHook.unregister(DruidHook.RESULTSET, this);
}

@Override
public <T> void dispatch1(HookKey<T> key, T object)
{
if(DruidHook.SQL.equals(key)) {
printStream.println(object);
printStream.print(";");
return;
}
if (DruidHook.RESULTSET.equals(key)) {
printStream.println(object);
printStream.print(object);
printStream.println(";");
printStream.println("!ok");
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
package org.apache.druid.segment.data;

import com.fasterxml.jackson.annotation.JsonCreator;

import com.fasterxml.jackson.annotation.JsonValue;
import com.github.luben.zstd.Zstd;
import com.ning.compress.BufferRecycler;
Expand Down
1 change: 0 additions & 1 deletion sql/src/test/java/org/apache/druid/quidem/DruidHook.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ public boolean equals(Object obj)

public static final HookKey<RelNode> DRUID_PLAN = new HookKey<>("druidPlan", RelNode.class);
public static final HookKey<String> SQL = new HookKey<>("sql", String.class);
public static final HookKey<String> RESULTSET = new HookKey<>("resultSet", String.class);

<T> void dispatch1(HookKey<T> key, T object);

Expand Down
Loading

0 comments on commit ec2ecde

Please sign in to comment.