public class org.apache.drill.exec.store.http.TestHttpPlugin extends org.apache.drill.test.ClusterTest
{
private static final int MOCK_SERVER_PORT;
private static java.lang.String TEST_JSON_RESPONSE;
private static java.lang.String TEST_MALFORMED_JSON_RESPONSE;
private static java.lang.String TEST_CSV_RESPONSE;
private static java.lang.String TEST_XML_RESPONSE;
private static java.lang.String TEST_JSON_RESPONSE_WITH_DATATYPES;
public void <init>()
{
org.apache.drill.exec.store.http.TestHttpPlugin v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
specialinvoke v.<org.apache.drill.test.ClusterTest: void <init>()>();
return;
}
public static java.lang.String makeUrl(java.lang.String)
{
java.lang.Object[] v;
int v;
java.lang.String v, v;
java.lang.Integer v;
v := @parameter: java.lang.String;
v = newarray (java.lang.Object)[1];
v = (int) 44332;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
v[0] = v;
v = staticinvoke <java.lang.String: java.lang.String format(java.lang.String,java.lang.Object[])>(v, v);
return v;
}
public static void setup() throws java.lang.Exception
{
org.apache.drill.test.BaseDirTestWatcher v, v;
java.lang.String[] v;
org.apache.drill.shaded.guava.com.google.common.io.CharSource v, v, v, v, v;
java.nio.charset.Charset v, v, v, v, v;
java.lang.String v, v, v, v, v;
java.nio.file.Path v;
java.io.File v, v, v, v, v;
org.apache.drill.test.ClusterFixtureBuilder v;
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.BaseDirTestWatcher dirTestWatcher>;
v = staticinvoke <org.apache.drill.test.ClusterFixture: org.apache.drill.test.ClusterFixtureBuilder builder(org.apache.drill.test.BaseDirTestWatcher)>(v);
staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: void startCluster(org.apache.drill.test.ClusterFixtureBuilder)>(v);
v = staticinvoke <org.apache.drill.common.util.DrillFileUtils: java.io.File getResourceAsFile(java.lang.String)>("/data/response.json");
v = <org.apache.drill.shaded.guava.com.google.common.base.Charsets: java.nio.charset.Charset UTF_8>;
v = staticinvoke <org.apache.drill.shaded.guava.com.google.common.io.Files: org.apache.drill.shaded.guava.com.google.common.io.CharSource asCharSource(java.io.File,java.nio.charset.Charset)>(v, v);
v = virtualinvoke v.<org.apache.drill.shaded.guava.com.google.common.io.CharSource: java.lang.String read()>();
<org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String TEST_JSON_RESPONSE> = v;
v = staticinvoke <org.apache.drill.common.util.DrillFileUtils: java.io.File getResourceAsFile(java.lang.String)>("/data/malformed.json");
v = <org.apache.drill.shaded.guava.com.google.common.base.Charsets: java.nio.charset.Charset UTF_8>;
v = staticinvoke <org.apache.drill.shaded.guava.com.google.common.io.Files: org.apache.drill.shaded.guava.com.google.common.io.CharSource asCharSource(java.io.File,java.nio.charset.Charset)>(v, v);
v = virtualinvoke v.<org.apache.drill.shaded.guava.com.google.common.io.CharSource: java.lang.String read()>();
<org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String TEST_MALFORMED_JSON_RESPONSE> = v;
v = staticinvoke <org.apache.drill.common.util.DrillFileUtils: java.io.File getResourceAsFile(java.lang.String)>("/data/response.csv");
v = <org.apache.drill.shaded.guava.com.google.common.base.Charsets: java.nio.charset.Charset UTF_8>;
v = staticinvoke <org.apache.drill.shaded.guava.com.google.common.io.Files: org.apache.drill.shaded.guava.com.google.common.io.CharSource asCharSource(java.io.File,java.nio.charset.Charset)>(v, v);
v = virtualinvoke v.<org.apache.drill.shaded.guava.com.google.common.io.CharSource: java.lang.String read()>();
<org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String TEST_CSV_RESPONSE> = v;
v = staticinvoke <org.apache.drill.common.util.DrillFileUtils: java.io.File getResourceAsFile(java.lang.String)>("/data/response.xml");
v = <org.apache.drill.shaded.guava.com.google.common.base.Charsets: java.nio.charset.Charset UTF_8>;
v = staticinvoke <org.apache.drill.shaded.guava.com.google.common.io.Files: org.apache.drill.shaded.guava.com.google.common.io.CharSource asCharSource(java.io.File,java.nio.charset.Charset)>(v, v);
v = virtualinvoke v.<org.apache.drill.shaded.guava.com.google.common.io.CharSource: java.lang.String read()>();
<org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String TEST_XML_RESPONSE> = v;
v = staticinvoke <org.apache.drill.common.util.DrillFileUtils: java.io.File getResourceAsFile(java.lang.String)>("/data/response.json");
v = <org.apache.drill.shaded.guava.com.google.common.base.Charsets: java.nio.charset.Charset UTF_8>;
v = staticinvoke <org.apache.drill.shaded.guava.com.google.common.io.Files: org.apache.drill.shaded.guava.com.google.common.io.CharSource asCharSource(java.io.File,java.nio.charset.Charset)>(v, v);
v = virtualinvoke v.<org.apache.drill.shaded.guava.com.google.common.io.CharSource: java.lang.String read()>();
<org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String TEST_JSON_RESPONSE_WITH_DATATYPES> = v;
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.BaseDirTestWatcher dirTestWatcher>;
v = newarray (java.lang.String)[0];
v = staticinvoke <java.nio.file.Paths: java.nio.file.Path get(java.lang.String,java.lang.String[])>("data/", v);
virtualinvoke v.<org.apache.drill.test.BaseDirTestWatcher: java.io.File copyResourceToRoot(java.nio.file.Path)>(v);
staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: void makeLiveConfig()>();
staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: void makeMockConfig()>();
return;
}
private static void makeLiveConfig()
{
java.lang.Integer v, v, v;
org.apache.drill.common.logical.security.CredentialsProvider v;
org.apache.drill.exec.store.http.HttpApiConfig v, v, v, v, v;
org.apache.drill.common.logical.StoragePluginConfig$AuthMode v;
java.util.List v, v;
org.apache.drill.exec.store.http.HttpXmlOptions$HttpXmlOptionsBuilder v, v;
org.apache.drill.exec.store.http.HttpXmlOptions v;
java.lang.String[] v, v;
java.util.HashMap v;
org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v;
java.lang.Boolean v, v;
java.lang.String v;
org.apache.drill.test.ClusterFixture v;
org.apache.drill.exec.store.http.HttpStoragePluginConfig v;
v = staticinvoke <org.apache.drill.exec.store.http.HttpApiConfig: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder builder()>();
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder url(java.lang.String)>("https://api.sunrise-sunset.org/json");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder method(java.lang.String)>("GET");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig build()>();
v = staticinvoke <org.apache.drill.exec.store.http.HttpApiConfig: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder builder()>();
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder url(java.lang.String)>("https://api.sunrise-sunset.org/json");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder method(java.lang.String)>("GET");
v = newarray (java.lang.String)[3];
v[0] = "lat";
v[1] = "lng";
v[2] = "date";
v = staticinvoke <java.util.Arrays: java.util.List asList(java.lang.Object[])>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder params(java.util.List)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder dataPath(java.lang.String)>("results");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder requireTail(boolean)>(0);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig build()>();
v = staticinvoke <org.apache.drill.exec.store.http.HttpApiConfig: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder builder()>();
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder url(java.lang.String)>("https://api.worldtradingdata.com/api/v1/stock?symbol=SNAP,TWTR,VOD.L&api_token=zuHlu2vZaehdZN6GmJdTiVlp7xgZn6gl6sfgmI4G6TY4ej0NLOzvy0TUl4D4");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder method(java.lang.String)>("get");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig build()>();
v = staticinvoke <org.apache.drill.exec.store.http.HttpApiConfig: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder builder()>();
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder url(java.lang.String)>("https://pokeapi.co/api/v2/pokemon/{pokemon_name}");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder method(java.lang.String)>("get");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder inputType(java.lang.String)>("json");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder requireTail(boolean)>(0);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig build()>();
v = staticinvoke <org.apache.drill.exec.store.http.HttpXmlOptions: org.apache.drill.exec.store.http.HttpXmlOptions$HttpXmlOptionsBuilder builder()>();
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpXmlOptions$HttpXmlOptionsBuilder: org.apache.drill.exec.store.http.HttpXmlOptions$HttpXmlOptionsBuilder dataLevel(int)>(5);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpXmlOptions$HttpXmlOptionsBuilder: org.apache.drill.exec.store.http.HttpXmlOptions build()>();
v = staticinvoke <org.apache.drill.exec.store.http.HttpApiConfig: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder builder()>();
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder url(java.lang.String)>("https://www.checkbooknyc.com/api");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder method(java.lang.String)>("post");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder inputType(java.lang.String)>("xml");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder requireTail(boolean)>(0);
v = newarray (java.lang.String)[3];
v[0] = "type_of_data";
v[1] = "records_from";
v[2] = "max_records";
v = staticinvoke <java.util.Arrays: java.util.List asList(java.lang.Object[])>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder params(java.util.List)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder postParameterLocation(java.lang.String)>("xml_body");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder xmlOptions(org.apache.drill.exec.store.http.HttpXmlOptions)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig build()>();
v = new java.util.HashMap;
specialinvoke v.<java.util.HashMap: void <init>()>();
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>("stock", v);
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>("sunrise", v);
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>("sunrise2", v);
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>("pokemon", v);
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>("nyc", v);
v = new org.apache.drill.exec.store.http.HttpStoragePluginConfig;
v = staticinvoke <java.lang.Boolean: java.lang.Boolean valueOf(boolean)>(0);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(10);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(1000);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(80);
v = <org.apache.drill.common.logical.security.PlainCredentialsProvider: org.apache.drill.common.logical.security.CredentialsProvider EMPTY_CREDENTIALS_PROVIDER>;
v = <org.apache.drill.common.logical.StoragePluginConfig$AuthMode: org.apache.drill.common.logical.StoragePluginConfig$AuthMode SHARED_USER>;
v = virtualinvoke v.<org.apache.drill.common.logical.StoragePluginConfig$AuthMode: java.lang.String name()>();
specialinvoke v.<org.apache.drill.exec.store.http.HttpStoragePluginConfig: void <init>(java.lang.Boolean,java.util.Map,java.lang.Integer,java.lang.Integer,java.lang.String,java.lang.String,java.lang.String,java.lang.Integer,java.lang.String,java.lang.String,java.lang.String,org.apache.drill.common.logical.OAuthConfig,org.apache.drill.common.logical.security.CredentialsProvider,java.lang.String)>(v, v, v, v, null, null, "", v, "", "", "", null, v, v);
v = staticinvoke <java.lang.Boolean: java.lang.Boolean valueOf(boolean)>(1);
virtualinvoke v.<org.apache.drill.exec.store.http.HttpStoragePluginConfig: void setEnabled(java.lang.Boolean)>(v);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClusterFixture cluster>;
virtualinvoke v.<org.apache.drill.test.ClusterFixture: void defineStoragePlugin(java.lang.String,org.apache.drill.common.logical.StoragePluginConfig)>("live", v);
return;
}
private static void makeMockConfig()
{
java.lang.Integer v, v, v;
org.apache.drill.common.logical.security.PlainCredentialsProvider v, v;
org.apache.drill.exec.store.http.HttpApiConfig v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v;
org.apache.drill.exec.store.http.HttpJsonOptions v, v;
org.apache.drill.exec.store.http.HttpPaginatorConfig$HttpPaginatorConfigBuilder v, v, v, v, v;
org.apache.drill.common.types.TypeProtos$MinorType v, v, v, v, v, v, v;
org.apache.drill.exec.record.metadata.TupleMetadata v;
org.apache.drill.exec.store.http.HttpXmlOptions$HttpXmlOptionsBuilder v, v, v, v, v;
org.apache.drill.exec.store.http.HttpXmlOptions v, v;
java.lang.Boolean v, v, v, v;
org.apache.drill.test.ClusterFixture v;
org.apache.drill.shaded.guava.com.google.common.collect.ImmutableMap v, v;
org.apache.drill.exec.store.http.HttpStoragePluginConfig v;
org.apache.drill.exec.record.metadata.SchemaBuilder v, v, v, v, v, v, v, v;
java.lang.String v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v;
org.apache.drill.exec.store.http.HttpJsonOptions$HttpJsonOptionsBuilder v, v, v, v;
org.apache.drill.exec.store.http.HttpPaginatorConfig v;
org.apache.drill.common.logical.StoragePluginConfig$AuthMode v;
java.util.List v, v, v, v, v, v, v, v;
java.lang.String[] v, v, v, v, v, v, v, v;
java.util.HashMap v, v;
org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v;
v = new java.util.HashMap;
specialinvoke v.<java.util.HashMap: void <init>()>();
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>("header1", "value1");
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>("header2", "value2");
v = staticinvoke <org.apache.drill.exec.store.http.HttpApiConfig: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder builder()>();
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String makeUrl(java.lang.String)>("http://localhost:%d/json");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder url(java.lang.String)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder method(java.lang.String)>("GET");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder headers(java.util.Map)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder authType(java.lang.String)>("basic");
v = new org.apache.drill.common.logical.security.PlainCredentialsProvider;
v = staticinvoke <org.apache.drill.shaded.guava.com.google.common.collect.ImmutableMap: org.apache.drill.shaded.guava.com.google.common.collect.ImmutableMap of(java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object)>("username", "user", "password", "pass");
specialinvoke v.<org.apache.drill.common.logical.security.PlainCredentialsProvider: void <init>(java.util.Map)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder credentialsProvider(org.apache.drill.common.logical.security.CredentialsProvider)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder dataPath(java.lang.String)>("results");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder errorOn400(boolean)>(1);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig build()>();
v = staticinvoke <org.apache.drill.exec.store.http.HttpApiConfig: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder builder()>();
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String makeUrl(java.lang.String)>("http://localhost:%d/json");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder url(java.lang.String)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder method(java.lang.String)>("GET");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder headers(java.util.Map)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder authType(java.lang.String)>("basic");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder userName(java.lang.String)>("user");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder password(java.lang.String)>("pass");
v = newarray (java.lang.String)[3];
v[0] = "lat";
v[1] = "lng";
v[2] = "date";
v = staticinvoke <java.util.Arrays: java.util.List asList(java.lang.Object[])>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder params(java.util.List)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder dataPath(java.lang.String)>("results");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder requireTail(boolean)>(0);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig build()>();
v = staticinvoke <org.apache.drill.exec.store.http.HttpApiConfig: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder builder()>();
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String makeUrl(java.lang.String)>("http://localhost:%d/");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder url(java.lang.String)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder method(java.lang.String)>("POST");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder headers(java.util.Map)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder postBody(java.lang.String)>("key1=value1\nkey2=value2");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig build()>();
v = staticinvoke <org.apache.drill.exec.store.http.HttpApiConfig: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder builder()>();
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String makeUrl(java.lang.String)>("http://localhost:%d/");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder url(java.lang.String)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder method(java.lang.String)>("POST");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder headers(java.util.Map)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder requireTail(boolean)>(0);
v = newarray (java.lang.String)[3];
v[0] = "lat";
v[1] = "lng";
v[2] = "date";
v = staticinvoke <java.util.Arrays: java.util.List asList(java.lang.Object[])>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder params(java.util.List)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder postBody(java.lang.String)>("key1=value1\nkey2=value2");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder postParameterLocation(java.lang.String)>("post_body");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig build()>();
v = staticinvoke <org.apache.drill.exec.store.http.HttpApiConfig: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder builder()>();
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String makeUrl(java.lang.String)>("http://localhost:%d/");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder url(java.lang.String)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder method(java.lang.String)>("POST");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder headers(java.util.Map)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder requireTail(boolean)>(0);
v = newarray (java.lang.String)[3];
v[0] = "lat";
v[1] = "lng";
v[2] = "date";
v = staticinvoke <java.util.Arrays: java.util.List asList(java.lang.Object[])>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder params(java.util.List)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder postParameterLocation(java.lang.String)>("post_body");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig build()>();
v = staticinvoke <org.apache.drill.exec.store.http.HttpApiConfig: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder builder()>();
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String makeUrl(java.lang.String)>("http://localhost:%d/");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder url(java.lang.String)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder method(java.lang.String)>("POST");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder headers(java.util.Map)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder requireTail(boolean)>(0);
v = newarray (java.lang.String)[3];
v[0] = "lat";
v[1] = "lng";
v[2] = "date";
v = staticinvoke <java.util.Arrays: java.util.List asList(java.lang.Object[])>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder params(java.util.List)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder postParameterLocation(java.lang.String)>("json_body");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig build()>();
v = staticinvoke <org.apache.drill.exec.store.http.HttpApiConfig: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder builder()>();
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String makeUrl(java.lang.String)>("http://localhost:%d/");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder url(java.lang.String)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder method(java.lang.String)>("POST");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder headers(java.util.Map)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder requireTail(boolean)>(0);
v = newarray (java.lang.String)[3];
v[0] = "lat";
v[1] = "lng";
v[2] = "date";
v = staticinvoke <java.util.Arrays: java.util.List asList(java.lang.Object[])>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder params(java.util.List)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder postParameterLocation(java.lang.String)>("json_body");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder postBody(java.lang.String)>("key1=value1\nkey2=value2");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig build()>();
v = staticinvoke <org.apache.drill.exec.store.http.HttpPaginatorConfig: org.apache.drill.exec.store.http.HttpPaginatorConfig$HttpPaginatorConfigBuilder builder()>();
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpPaginatorConfig$HttpPaginatorConfigBuilder: org.apache.drill.exec.store.http.HttpPaginatorConfig$HttpPaginatorConfigBuilder limitParam(java.lang.String)>("limit");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpPaginatorConfig$HttpPaginatorConfigBuilder: org.apache.drill.exec.store.http.HttpPaginatorConfig$HttpPaginatorConfigBuilder offsetParam(java.lang.String)>("offset");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpPaginatorConfig$HttpPaginatorConfigBuilder: org.apache.drill.exec.store.http.HttpPaginatorConfig$HttpPaginatorConfigBuilder method(java.lang.String)>("offset");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpPaginatorConfig$HttpPaginatorConfigBuilder: org.apache.drill.exec.store.http.HttpPaginatorConfig$HttpPaginatorConfigBuilder pageSize(int)>(2);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpPaginatorConfig$HttpPaginatorConfigBuilder: org.apache.drill.exec.store.http.HttpPaginatorConfig build()>();
v = staticinvoke <org.apache.drill.exec.store.http.HttpApiConfig: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder builder()>();
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String makeUrl(java.lang.String)>("http://localhost:%d/json");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder url(java.lang.String)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder method(java.lang.String)>("get");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder headers(java.util.Map)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder requireTail(boolean)>(0);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder paginator(org.apache.drill.exec.store.http.HttpPaginatorConfig)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder inputType(java.lang.String)>("json");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig build()>();
v = staticinvoke <org.apache.drill.exec.store.http.HttpApiConfig: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder builder()>();
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String makeUrl(java.lang.String)>("http://localhost:%d/json");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder url(java.lang.String)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder method(java.lang.String)>("get");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder requireTail(boolean)>(0);
v = new org.apache.drill.exec.store.http.HttpJsonOptions$HttpJsonOptionsBuilder;
specialinvoke v.<org.apache.drill.exec.store.http.HttpJsonOptions$HttpJsonOptionsBuilder: void <init>()>();
v = staticinvoke <java.lang.Boolean: java.lang.Boolean valueOf(boolean)>(1);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpJsonOptions$HttpJsonOptionsBuilder: org.apache.drill.exec.store.http.HttpJsonOptions$HttpJsonOptionsBuilder skipMalformedRecords(java.lang.Boolean)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpJsonOptions$HttpJsonOptionsBuilder: org.apache.drill.exec.store.http.HttpJsonOptions build()>();
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder jsonOptions(org.apache.drill.exec.store.http.HttpJsonOptions)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder inputType(java.lang.String)>("json");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig build()>();
v = staticinvoke <org.apache.drill.exec.store.http.HttpApiConfig: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder builder()>();
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String makeUrl(java.lang.String)>("http://localhost:%d/");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder url(java.lang.String)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder method(java.lang.String)>("POST");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder authType(java.lang.String)>("basic");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder headers(java.util.Map)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig build()>();
v = staticinvoke <org.apache.drill.exec.store.http.HttpApiConfig: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder builder()>();
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String makeUrl(java.lang.String)>("http://localhost:%d/csv");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder url(java.lang.String)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder method(java.lang.String)>("GET");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder headers(java.util.Map)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder authType(java.lang.String)>("basic");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder userName(java.lang.String)>("user");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder password(java.lang.String)>("pass");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder dataPath(java.lang.String)>("results");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder inputType(java.lang.String)>("csv");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig build()>();
v = staticinvoke <org.apache.drill.exec.store.http.HttpApiConfig: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder builder()>();
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String makeUrl(java.lang.String)>("http://localhost:%d/csv");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder url(java.lang.String)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder method(java.lang.String)>("get");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder paginator(org.apache.drill.exec.store.http.HttpPaginatorConfig)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder inputType(java.lang.String)>("csv");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder requireTail(boolean)>(0);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder dataPath(java.lang.String)>("results");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig build()>();
v = new org.apache.drill.exec.store.http.HttpXmlOptions$HttpXmlOptionsBuilder;
specialinvoke v.<org.apache.drill.exec.store.http.HttpXmlOptions$HttpXmlOptionsBuilder: void <init>()>();
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpXmlOptions$HttpXmlOptionsBuilder: org.apache.drill.exec.store.http.HttpXmlOptions$HttpXmlOptionsBuilder dataLevel(int)>(2);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpXmlOptions$HttpXmlOptionsBuilder: org.apache.drill.exec.store.http.HttpXmlOptions build()>();
v = new org.apache.drill.exec.record.metadata.SchemaBuilder;
specialinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: void <init>()>();
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType MAP>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType)>("attributes", v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder addNullable(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType)>("COMMON", v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder addNullable(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType)>("BOTANICAL", v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType INT>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder addNullable(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType)>("ZONE", v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder addNullable(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType)>("LIGHT", v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder addNullable(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType)>("PRICE", v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder addNullable(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType)>("AVAILABILITY", v);
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.TupleMetadata buildSchema()>();
v = new org.apache.drill.exec.store.http.HttpXmlOptions$HttpXmlOptionsBuilder;
specialinvoke v.<org.apache.drill.exec.store.http.HttpXmlOptions$HttpXmlOptionsBuilder: void <init>()>();
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpXmlOptions$HttpXmlOptionsBuilder: org.apache.drill.exec.store.http.HttpXmlOptions$HttpXmlOptionsBuilder dataLevel(int)>(2);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpXmlOptions$HttpXmlOptionsBuilder: org.apache.drill.exec.store.http.HttpXmlOptions$HttpXmlOptionsBuilder schema(org.apache.drill.exec.record.metadata.TupleMetadata)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpXmlOptions$HttpXmlOptionsBuilder: org.apache.drill.exec.store.http.HttpXmlOptions build()>();
v = staticinvoke <org.apache.drill.exec.store.http.HttpApiConfig: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder builder()>();
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String makeUrl(java.lang.String)>("http://localhost:%d/xml");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder url(java.lang.String)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder method(java.lang.String)>("GET");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder headers(java.util.Map)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder authType(java.lang.String)>("basic");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder userName(java.lang.String)>("user");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder password(java.lang.String)>("pass");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder dataPath(java.lang.String)>("results");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder inputType(java.lang.String)>("xml");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder xmlOptions(org.apache.drill.exec.store.http.HttpXmlOptions)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig build()>();
v = staticinvoke <org.apache.drill.exec.store.http.HttpApiConfig: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder builder()>();
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String makeUrl(java.lang.String)>("http://localhost:%d/xml");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder url(java.lang.String)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder method(java.lang.String)>("GET");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder headers(java.util.Map)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder authType(java.lang.String)>("basic");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder userName(java.lang.String)>("user");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder password(java.lang.String)>("pass");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder dataPath(java.lang.String)>("results");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder inputType(java.lang.String)>("xml");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder xmlOptions(org.apache.drill.exec.store.http.HttpXmlOptions)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig build()>();
v = staticinvoke <org.apache.drill.exec.store.http.HttpApiConfig: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder builder()>();
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String makeUrl(java.lang.String)>("http://localhost:%d/orgs/{org}/repos");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder url(java.lang.String)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder method(java.lang.String)>("GET");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder headers(java.util.Map)>(v);
v = newarray (java.lang.String)[3];
v[0] = "lat";
v[1] = "lng";
v[2] = "date";
v = staticinvoke <java.util.Arrays: java.util.List asList(java.lang.Object[])>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder params(java.util.List)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder dataPath(java.lang.String)>("results");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder requireTail(boolean)>(0);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig build()>();
v = staticinvoke <org.apache.drill.exec.store.http.HttpApiConfig: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder builder()>();
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String makeUrl(java.lang.String)>("http://localhost:%d/orgs/{org}/repos");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder url(java.lang.String)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder method(java.lang.String)>("GET");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder headers(java.util.Map)>(v);
v = newarray (java.lang.String)[3];
v[0] = "org";
v[1] = "lng";
v[2] = "date";
v = staticinvoke <java.util.Arrays: java.util.List asList(java.lang.Object[])>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder params(java.util.List)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder dataPath(java.lang.String)>("results");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder requireTail(boolean)>(0);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig build()>();
v = staticinvoke <org.apache.drill.exec.store.http.HttpApiConfig: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder builder()>();
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String makeUrl(java.lang.String)>("http://localhost:%d/orgs/{org}/repos?p1={p1}");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder url(java.lang.String)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder method(java.lang.String)>("GET");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder headers(java.util.Map)>(v);
v = newarray (java.lang.String)[2];
v[0] = "p2";
v[1] = "p3";
v = staticinvoke <java.util.Arrays: java.util.List asList(java.lang.Object[])>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder params(java.util.List)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder dataPath(java.lang.String)>("results");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder requireTail(boolean)>(0);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig build()>();
v = staticinvoke <org.apache.drill.exec.store.http.HttpApiConfig: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder builder()>();
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String makeUrl(java.lang.String)>("http://localhost:%d/json");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder url(java.lang.String)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder method(java.lang.String)>("GET");
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder headers(java.util.Map)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder requireTail(boolean)>(0);
v = staticinvoke <org.apache.drill.exec.store.http.HttpJsonOptions: org.apache.drill.exec.store.http.HttpJsonOptions$HttpJsonOptionsBuilder builder()>();
v = staticinvoke <java.lang.Boolean: java.lang.Boolean valueOf(boolean)>(1);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpJsonOptions$HttpJsonOptionsBuilder: org.apache.drill.exec.store.http.HttpJsonOptions$HttpJsonOptionsBuilder allTextMode(java.lang.Boolean)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpJsonOptions$HttpJsonOptionsBuilder: org.apache.drill.exec.store.http.HttpJsonOptions build()>();
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder jsonOptions(org.apache.drill.exec.store.http.HttpJsonOptions)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.HttpApiConfig$HttpApiConfigBuilder: org.apache.drill.exec.store.http.HttpApiConfig build()>();
v = new java.util.HashMap;
specialinvoke v.<java.util.HashMap: void <init>()>();
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>("csv_paginator", v);
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>("json_paginator", v);
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>("sunrise", v);
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>("mocktable", v);
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>("mockpost", v);
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>("nullPost", v);
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>("mockJsonPost", v);
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>("mockJsonNullBodyPost", v);
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>("mockPostPushdown", v);
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>("mockPostPushdownWithStaticParams", v);
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>("mockcsv", v);
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>("mockxml", v);
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>("mockxml_with_schema", v);
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>("github", v);
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>("github2", v);
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>("github3", v);
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>("mockJsonAllText", v);
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>("malformedJson", v);
v = new org.apache.drill.exec.store.http.HttpStoragePluginConfig;
v = staticinvoke <java.lang.Boolean: java.lang.Boolean valueOf(boolean)>(0);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(2);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(1000);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(80);
v = new org.apache.drill.common.logical.security.PlainCredentialsProvider;
v = staticinvoke <org.apache.drill.shaded.guava.com.google.common.collect.ImmutableMap: org.apache.drill.shaded.guava.com.google.common.collect.ImmutableMap of(java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object)>("username", "globaluser", "password", "globalpass");
specialinvoke v.<org.apache.drill.common.logical.security.PlainCredentialsProvider: void <init>(java.util.Map)>(v);
v = <org.apache.drill.common.logical.StoragePluginConfig$AuthMode: org.apache.drill.common.logical.StoragePluginConfig$AuthMode SHARED_USER>;
v = virtualinvoke v.<org.apache.drill.common.logical.StoragePluginConfig$AuthMode: java.lang.String name()>();
specialinvoke v.<org.apache.drill.exec.store.http.HttpStoragePluginConfig: void <init>(java.lang.Boolean,java.util.Map,java.lang.Integer,java.lang.Integer,java.lang.String,java.lang.String,java.lang.String,java.lang.Integer,java.lang.String,java.lang.String,java.lang.String,org.apache.drill.common.logical.OAuthConfig,org.apache.drill.common.logical.security.CredentialsProvider,java.lang.String)>(v, v, v, v, "globaluser", "globalpass", "", v, "", "", "", null, v, v);
v = staticinvoke <java.lang.Boolean: java.lang.Boolean valueOf(boolean)>(1);
virtualinvoke v.<org.apache.drill.exec.store.http.HttpStoragePluginConfig: void setEnabled(java.lang.Boolean)>(v);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClusterFixture cluster>;
virtualinvoke v.<org.apache.drill.test.ClusterFixture: void defineStoragePlugin(java.lang.String,org.apache.drill.common.logical.StoragePluginConfig)>("local", v);
return;
}
public void verifyPluginConfig() throws java.lang.Exception
{
org.apache.drill.exec.memory.BufferAllocator v;
org.apache.drill.exec.record.metadata.SchemaBuilder v, v, v;
org.apache.drill.common.types.TypeProtos$MinorType v, v;
org.apache.drill.exec.store.http.TestHttpPlugin v;
org.apache.drill.exec.physical.rowSet.RowSetBuilder v, v, v, v, v, v, v, v, v, v, v;
org.apache.drill.exec.record.metadata.TupleMetadata v;
java.lang.Object[] v, v, v, v, v, v, v, v, v, v;
org.apache.drill.exec.physical.rowSet.DirectRowSet v;
org.apache.drill.common.types.TypeProtos$DataMode v, v;
org.apache.drill.test.ClientFixture v, v;
org.apache.drill.test.QueryBuilder v, v;
org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>("SELECT SCHEMA_NAME, TYPE FROM INFORMATION_SCHEMA.`SCHEMATA` WHERE TYPE=\'http\'\nORDER BY SCHEMA_NAME");
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.exec.physical.rowSet.DirectRowSet rowSet()>();
v = new org.apache.drill.exec.record.metadata.SchemaBuilder;
specialinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: void <init>()>();
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("SCHEMA_NAME", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("TYPE", v, v);
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.TupleMetadata buildSchema()>();
v = new org.apache.drill.exec.physical.rowSet.RowSetBuilder;
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.exec.memory.BufferAllocator allocator()>();
specialinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: void <init>(org.apache.drill.exec.memory.BufferAllocator,org.apache.drill.exec.record.metadata.TupleMetadata)>(v, v);
v = newarray (java.lang.Object)[2];
v[0] = "live";
v[1] = "http";
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = newarray (java.lang.Object)[2];
v[0] = "live.stock";
v[1] = "http";
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = newarray (java.lang.Object)[2];
v[0] = "live.sunrise";
v[1] = "http";
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = newarray (java.lang.Object)[2];
v[0] = "local";
v[1] = "http";
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = newarray (java.lang.Object)[2];
v[0] = "local.mockcsv";
v[1] = "http";
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = newarray (java.lang.Object)[2];
v[0] = "local.mockpost";
v[1] = "http";
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = newarray (java.lang.Object)[2];
v[0] = "local.mockxml";
v[1] = "http";
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = newarray (java.lang.Object)[2];
v[0] = "local.mockxml_with_schema";
v[1] = "http";
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = newarray (java.lang.Object)[2];
v[0] = "local.nullpost";
v[1] = "http";
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = newarray (java.lang.Object)[2];
v[0] = "local.sunrise";
v[1] = "http";
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet build()>();
staticinvoke <org.apache.drill.test.rowSet.RowSetUtilities: void verify(org.apache.drill.exec.physical.rowSet.RowSet,org.apache.drill.exec.physical.rowSet.RowSet)>(v, v);
return;
}
public void simpleStarQuery() throws java.lang.Exception
{
org.apache.drill.exec.memory.BufferAllocator v;
org.apache.drill.exec.record.metadata.SchemaBuilder v, v, v;
org.apache.drill.common.types.TypeProtos$MinorType v, v, v, v, v, v, v, v, v, v, v;
org.apache.drill.exec.store.http.TestHttpPlugin v;
org.apache.drill.exec.physical.rowSet.RowSetBuilder v, v;
org.apache.drill.exec.record.metadata.TupleMetadata v;
java.lang.Object[] v, v, v;
org.apache.drill.exec.physical.rowSet.DirectRowSet v;
org.apache.drill.common.types.TypeProtos$DataMode v, v, v, v, v, v, v, v, v, v, v;
org.apache.drill.test.ClientFixture v, v;
org.apache.drill.test.QueryBuilder v, v;
org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet v;
org.apache.drill.exec.record.metadata.MapBuilder v, v, v, v, v, v, v, v, v, v, v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>("SELECT * FROM live.sunrise.`?lat=36.7201600&lng=-4.4203400&date=2019-10-02`");
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.exec.physical.rowSet.DirectRowSet rowSet()>();
v = new org.apache.drill.exec.record.metadata.SchemaBuilder;
specialinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: void <init>()>();
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.MapBuilder addMap(java.lang.String)>("results");
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("sunrise", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("sunset", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("solar_noon", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("day_length", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("civil_twilight_begin", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("civil_twilight_end", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("nautical_twilight_begin", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("nautical_twilight_end", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("astronomical_twilight_begin", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("astronomical_twilight_end", v, v);
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder resumeSchema()>();
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("status", v, v);
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.TupleMetadata build()>();
v = new org.apache.drill.exec.physical.rowSet.RowSetBuilder;
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.exec.memory.BufferAllocator allocator()>();
specialinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: void <init>(org.apache.drill.exec.memory.BufferAllocator,org.apache.drill.exec.record.metadata.TupleMetadata)>(v, v);
v = newarray (java.lang.Object)[2];
v = newarray (java.lang.Object)[10];
v[0] = "6:12:17 AM";
v[1] = "6:01:54 PM";
v[2] = "12:07:06 PM";
v[3] = "11:49:37";
v[4] = "5:47:49 AM";
v[5] = "6:26:22 PM";
v[6] = "5:17:51 AM";
v[7] = "6:56:21 PM";
v[8] = "4:47:41 AM";
v[9] = "7:26:31 PM";
v = staticinvoke <org.apache.drill.test.rowSet.RowSetUtilities: java.lang.Object[] mapValue(java.lang.Object[])>(v);
v[0] = v;
v[1] = "OK";
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet build()>();
staticinvoke <org.apache.drill.test.rowSet.RowSetUtilities: void verify(org.apache.drill.exec.physical.rowSet.RowSet,org.apache.drill.exec.physical.rowSet.RowSet)>(v, v);
return;
}
public void wildcardQueryWithParams() throws java.lang.Exception
{
org.apache.drill.exec.memory.BufferAllocator v;
org.apache.drill.exec.record.metadata.SchemaBuilder v, v, v, v, v, v, v, v, v, v, v;
org.apache.drill.common.types.TypeProtos$MinorType v, v, v, v, v, v, v, v, v, v;
org.apache.drill.exec.store.http.TestHttpPlugin v;
org.apache.drill.exec.physical.rowSet.RowSetBuilder v, v;
org.apache.drill.exec.record.metadata.TupleMetadata v;
java.lang.Object[] v;
org.apache.drill.exec.physical.rowSet.DirectRowSet v;
org.apache.drill.common.types.TypeProtos$DataMode v, v, v, v, v, v, v, v, v, v;
org.apache.drill.test.ClientFixture v, v;
org.apache.drill.test.QueryBuilder v, v;
org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>("SELECT * FROM live.sunrise2\nWHERE `lat`=36.7201600 AND `lng`=-4.4203400 AND `date`=\'2019-10-02\'");
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.exec.physical.rowSet.DirectRowSet rowSet()>();
v = new org.apache.drill.exec.record.metadata.SchemaBuilder;
specialinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: void <init>()>();
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("sunrise", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("sunset", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("solar_noon", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("day_length", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("civil_twilight_begin", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("civil_twilight_end", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("nautical_twilight_begin", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("nautical_twilight_end", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("astronomical_twilight_begin", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("astronomical_twilight_end", v, v);
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.TupleMetadata build()>();
v = new org.apache.drill.exec.physical.rowSet.RowSetBuilder;
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.exec.memory.BufferAllocator allocator()>();
specialinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: void <init>(org.apache.drill.exec.memory.BufferAllocator,org.apache.drill.exec.record.metadata.TupleMetadata)>(v, v);
v = newarray (java.lang.Object)[10];
v[0] = "6:12:17 AM";
v[1] = "6:01:54 PM";
v[2] = "12:07:06 PM";
v[3] = "11:49:37";
v[4] = "5:47:49 AM";
v[5] = "6:26:22 PM";
v[6] = "5:17:51 AM";
v[7] = "6:56:21 PM";
v[8] = "4:47:41 AM";
v[9] = "7:26:31 PM";
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet build()>();
staticinvoke <org.apache.drill.test.rowSet.RowSetUtilities: void verify(org.apache.drill.exec.physical.rowSet.RowSet,org.apache.drill.exec.physical.rowSet.RowSet)>(v, v);
return;
}
public void simpleSpecificQuery() throws java.lang.Exception
{
org.apache.drill.exec.store.http.TestHttpPlugin v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
specialinvoke v.<org.apache.drill.exec.store.http.TestHttpPlugin: void doSimpleSpecificQuery(java.lang.String)>("SELECT t.results.sunrise AS sunrise, t.results.sunset AS sunset\nFROM live.sunrise.`?lat=36.7201600&lng=-4.4203400&date=2019-10-02` AS t1");
return;
}
public void simpleSpecificQueryWithParams() throws java.lang.Exception
{
org.apache.drill.exec.store.http.TestHttpPlugin v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
specialinvoke v.<org.apache.drill.exec.store.http.TestHttpPlugin: void doSimpleSpecificQuery(java.lang.String)>("SELECT sunrise, sunset\nFROM live.sunrise2\nWHERE `lat`=36.7201600 AND `lng`=-4.4203400 AND `date`=\'2019-10-02\'");
return;
}
public void simpleStarQueryWithXMLParams() throws java.lang.Exception
{
org.apache.drill.exec.memory.BufferAllocator v;
org.apache.drill.exec.record.metadata.SchemaBuilder v, v, v, v, v, v, v, v;
org.apache.drill.common.types.TypeProtos$MinorType v, v, v, v, v, v, v;
org.apache.drill.exec.store.http.TestHttpPlugin v;
org.apache.drill.exec.physical.rowSet.RowSetBuilder v, v, v, v, v;
org.apache.drill.exec.record.metadata.TupleMetadata v;
java.lang.Object[] v, v, v, v;
org.apache.drill.exec.physical.rowSet.DirectRowSet v;
org.apache.drill.common.types.TypeProtos$DataMode v, v, v, v, v, v, v;
org.apache.drill.test.ClientFixture v, v;
org.apache.drill.test.QueryBuilder v, v;
org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>("SELECT year, department, expense_category, budget_code, budget_name, modified, adopted FROM live.nyc WHERE type_of_data=\'Budget\' AND records_from=1 AND max_records=5 AND year IS NOT null");
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.exec.physical.rowSet.DirectRowSet rowSet()>();
v = new org.apache.drill.exec.record.metadata.SchemaBuilder;
specialinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: void <init>()>();
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("year", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("department", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("expense_category", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("budget_code", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("budget_name", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("modified", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("adopted", v, v);
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.TupleMetadata build()>();
v = new org.apache.drill.exec.physical.rowSet.RowSetBuilder;
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.exec.memory.BufferAllocator allocator()>();
specialinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: void <init>(org.apache.drill.exec.memory.BufferAllocator,org.apache.drill.exec.record.metadata.TupleMetadata)>(v, v);
v = newarray (java.lang.Object)[7];
v[0] = "2022";
v[1] = "MEDICAL ASSISTANCE - OTPS";
v[2] = "MEDICAL ASSISTANCE";
v[3] = "9564";
v[4] = "MMIS MEDICAL ASSISTANCE";
v[5] = "5972433142";
v[6] = "5584533142";
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = newarray (java.lang.Object)[7];
v[0] = "2020";
v[1] = "MEDICAL ASSISTANCE - OTPS";
v[2] = "MEDICAL ASSISTANCE";
v[3] = "9564";
v[4] = "MMIS MEDICAL ASSISTANCE";
v[5] = "5819588142";
v[6] = "4953233142";
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = newarray (java.lang.Object)[7];
v[0] = "2014";
v[1] = "MEDICAL ASSISTANCE - OTPS";
v[2] = "MEDICAL ASSISTANCE";
v[3] = "9564";
v[4] = "MMIS MEDICAL ASSISTANCE";
v[5] = "5708101276";
v[6] = "5231324567";
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = newarray (java.lang.Object)[7];
v[0] = "2015";
v[1] = "MEDICAL ASSISTANCE - OTPS";
v[2] = "MEDICAL ASSISTANCE";
v[3] = "9564";
v[4] = "MMIS MEDICAL ASSISTANCE";
v[5] = "5663673673";
v[6] = "5312507361";
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet build()>();
staticinvoke <org.apache.drill.test.rowSet.RowSetUtilities: void verify(org.apache.drill.exec.physical.rowSet.RowSet,org.apache.drill.exec.physical.rowSet.RowSet)>(v, v);
return;
}
private void doSimpleSpecificQuery(java.lang.String) throws java.lang.Exception
{
java.lang.Object[] v;
org.apache.drill.exec.memory.BufferAllocator v;
org.apache.drill.exec.record.metadata.SchemaBuilder v, v, v;
org.apache.drill.common.types.TypeProtos$MinorType v, v;
org.apache.drill.exec.physical.rowSet.DirectRowSet v;
org.apache.drill.common.types.TypeProtos$DataMode v, v;
org.apache.drill.exec.store.http.TestHttpPlugin v;
java.lang.String v;
org.apache.drill.test.ClientFixture v, v;
org.apache.drill.test.QueryBuilder v, v;
org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet v;
org.apache.drill.exec.physical.rowSet.RowSetBuilder v, v;
org.apache.drill.exec.record.metadata.TupleMetadata v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
v := @parameter: java.lang.String;
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>(v);
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.exec.physical.rowSet.DirectRowSet rowSet()>();
v = new org.apache.drill.exec.record.metadata.SchemaBuilder;
specialinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: void <init>()>();
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("sunrise", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("sunset", v, v);
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.TupleMetadata buildSchema()>();
v = new org.apache.drill.exec.physical.rowSet.RowSetBuilder;
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.exec.memory.BufferAllocator allocator()>();
specialinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: void <init>(org.apache.drill.exec.memory.BufferAllocator,org.apache.drill.exec.record.metadata.TupleMetadata)>(v, v);
v = newarray (java.lang.Object)[2];
v[0] = "6:12:17 AM";
v[1] = "6:01:54 PM";
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet build()>();
staticinvoke <org.apache.drill.test.rowSet.RowSetUtilities: void verify(org.apache.drill.exec.physical.rowSet.RowSet,org.apache.drill.exec.physical.rowSet.RowSet)>(v, v);
return;
}
public void liveTestWithURLParameters() throws java.lang.Exception
{
org.apache.drill.test.TestBuilder v, v, v;
org.apache.drill.exec.store.http.TestHttpPlugin v;
org.apache.drill.test.ClientFixture v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.test.TestBuilder testBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.TestBuilder: org.apache.drill.test.TestBuilder sqlQuery(java.lang.String)>("SELECT * FROM live.pokemon WHERE pokemon_name = \'ditto\'");
v = virtualinvoke v.<org.apache.drill.test.TestBuilder: org.apache.drill.test.TestBuilder expectsNumRecords(int)>(1);
virtualinvoke v.<org.apache.drill.test.TestBuilder: void go()>();
return;
}
public void simpleTestWithJsonConfig()
{
java.lang.Throwable v;
java.lang.Object[] v, v;
org.apache.drill.exec.memory.BufferAllocator v;
org.apache.drill.exec.record.metadata.SchemaBuilder v, v, v, v;
org.apache.drill.common.types.TypeProtos$MinorType v, v, v;
org.apache.drill.exec.physical.rowSet.DirectRowSet v;
org.apache.drill.common.types.TypeProtos$DataMode v, v, v;
org.apache.drill.exec.store.http.TestHttpPlugin v;
okhttp.mockwebserver.MockWebServer v;
java.lang.String v;
org.apache.drill.test.ClientFixture v, v;
org.apache.drill.test.QueryBuilder v, v;
org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet v;
org.apache.drill.exec.physical.rowSet.RowSetBuilder v, v, v;
org.apache.drill.exec.record.metadata.TupleMetadata v;
java.lang.Exception v;
okhttp.mockwebserver.MockResponse v, v, v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
label:
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: okhttp.mockwebserver.MockWebServer startServer()>();
label:
v = new okhttp.mockwebserver.MockResponse;
specialinvoke v.<okhttp.mockwebserver.MockResponse: void <init>()>();
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setResponseCode(int)>(200);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String TEST_JSON_RESPONSE_WITH_DATATYPES>;
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setBody(java.lang.String)>(v);
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void enqueue(okhttp.mockwebserver.MockResponse)>(v);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>("SELECT * FROM local.mockJsonAllText");
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.exec.physical.rowSet.DirectRowSet rowSet()>();
v = new org.apache.drill.exec.record.metadata.SchemaBuilder;
specialinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: void <init>()>();
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("col_1", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("col_2", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("col_3", v, v);
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.TupleMetadata build()>();
v = new org.apache.drill.exec.physical.rowSet.RowSetBuilder;
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.exec.memory.BufferAllocator allocator()>();
specialinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: void <init>(org.apache.drill.exec.memory.BufferAllocator,org.apache.drill.exec.record.metadata.TupleMetadata)>(v, v);
v = newarray (java.lang.Object)[3];
v[0] = "1.0";
v[1] = "2";
v[2] = "3.0";
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = newarray (java.lang.Object)[3];
v[0] = "4.0";
v[1] = "5";
v[2] = "6.0";
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet build()>();
staticinvoke <org.apache.drill.test.rowSet.RowSetUtilities: void verify(org.apache.drill.exec.physical.rowSet.RowSet,org.apache.drill.exec.physical.rowSet.RowSet)>(v, v);
label:
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void close()>();
goto label;
label:
v := @caughtexception;
throw v;
label:
v := @caughtexception;
staticinvoke <org.junit.Assert: void fail()>();
label:
return;
catch java.lang.Throwable from label to label with label;
catch java.lang.Exception from label to label with label;
}
public void simpleTestWithMalformedJson()
{
java.lang.Throwable v;
java.lang.Object[] v, v, v;
org.apache.drill.exec.memory.BufferAllocator v;
org.apache.drill.exec.record.metadata.SchemaBuilder v, v;
java.lang.Integer v, v, v;
org.apache.drill.common.types.TypeProtos$MinorType v;
org.apache.drill.exec.physical.rowSet.DirectRowSet v;
org.apache.drill.exec.store.http.TestHttpPlugin v;
okhttp.mockwebserver.MockWebServer v;
java.lang.String v;
org.apache.drill.test.ClientFixture v, v;
org.apache.drill.test.QueryBuilder v, v;
org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet v;
org.apache.drill.exec.physical.rowSet.RowSetBuilder v, v, v, v;
org.apache.drill.exec.record.metadata.TupleMetadata v;
java.lang.Exception v;
okhttp.mockwebserver.MockResponse v, v, v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
label:
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: okhttp.mockwebserver.MockWebServer startServer()>();
label:
v = new okhttp.mockwebserver.MockResponse;
specialinvoke v.<okhttp.mockwebserver.MockResponse: void <init>()>();
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setResponseCode(int)>(200);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String TEST_MALFORMED_JSON_RESPONSE>;
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setBody(java.lang.String)>(v);
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void enqueue(okhttp.mockwebserver.MockResponse)>(v);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>("SELECT * FROM local.malformedJson");
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.exec.physical.rowSet.DirectRowSet rowSet()>();
v = new org.apache.drill.exec.record.metadata.SchemaBuilder;
specialinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: void <init>()>();
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType BIGINT>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder addNullable(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType)>("a", v);
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.TupleMetadata build()>();
v = new org.apache.drill.exec.physical.rowSet.RowSetBuilder;
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.exec.memory.BufferAllocator allocator()>();
specialinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: void <init>(org.apache.drill.exec.memory.BufferAllocator,org.apache.drill.exec.record.metadata.TupleMetadata)>(v, v);
v = newarray (java.lang.Object)[1];
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(1);
v[0] = v;
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = newarray (java.lang.Object)[1];
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(5);
v[0] = v;
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = newarray (java.lang.Object)[1];
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(6);
v[0] = v;
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet build()>();
staticinvoke <org.apache.drill.test.rowSet.RowSetUtilities: void verify(org.apache.drill.exec.physical.rowSet.RowSet,org.apache.drill.exec.physical.rowSet.RowSet)>(v, v);
label:
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void close()>();
goto label;
label:
v := @caughtexception;
throw v;
label:
v := @caughtexception;
staticinvoke <org.junit.Assert: void fail()>();
label:
return;
catch java.lang.Throwable from label to label with label;
catch java.lang.Exception from label to label with label;
}
public void simpleTestWithMockServerWithURLParams() throws java.lang.Exception
{
java.lang.Throwable v;
java.lang.Object[] v;
org.apache.drill.exec.memory.BufferAllocator v;
org.apache.drill.exec.record.metadata.SchemaBuilder v, v;
org.apache.drill.common.types.TypeProtos$MinorType v;
org.apache.drill.exec.physical.rowSet.DirectRowSet v;
org.apache.drill.common.types.TypeProtos$DataMode v;
org.apache.drill.exec.store.http.TestHttpPlugin v;
okhttp.mockwebserver.MockWebServer v;
java.lang.String v, v;
org.apache.drill.test.ClientFixture v, v;
org.apache.drill.test.QueryBuilder v, v;
org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet v;
org.apache.drill.exec.physical.rowSet.RowSetBuilder v, v;
org.apache.drill.exec.record.metadata.TupleMetadata v;
okhttp.mockwebserver.MockResponse v, v, v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: okhttp.mockwebserver.MockWebServer startServer()>();
label:
v = new okhttp.mockwebserver.MockResponse;
specialinvoke v.<okhttp.mockwebserver.MockResponse: void <init>()>();
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setResponseCode(int)>(200);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String TEST_JSON_RESPONSE>;
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setBody(java.lang.String)>(v);
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void enqueue(okhttp.mockwebserver.MockResponse)>(v);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>("SELECT _response_url FROM local.github\nWHERE `org` = \'apache\'");
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.exec.physical.rowSet.DirectRowSet rowSet()>();
v = new org.apache.drill.exec.record.metadata.SchemaBuilder;
specialinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: void <init>()>();
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("_response_url", v, v);
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.TupleMetadata build()>();
v = new org.apache.drill.exec.physical.rowSet.RowSetBuilder;
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.exec.memory.BufferAllocator allocator()>();
specialinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: void <init>(org.apache.drill.exec.memory.BufferAllocator,org.apache.drill.exec.record.metadata.TupleMetadata)>(v, v);
v = newarray (java.lang.Object)[1];
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String makeUrl(java.lang.String)>("http://localhost:%d/orgs/apache/repos");
v[0] = v;
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet build()>();
staticinvoke <org.apache.drill.test.rowSet.RowSetUtilities: void verify(org.apache.drill.exec.physical.rowSet.RowSet,org.apache.drill.exec.physical.rowSet.RowSet)>(v, v);
label:
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void close()>();
goto label;
label:
v := @caughtexception;
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
}
public void simpleTestWithMockServerWithURLParamsOfBooleanType() throws java.lang.Exception
{
java.lang.Throwable v;
java.lang.Object[] v;
org.apache.drill.exec.memory.BufferAllocator v;
org.apache.drill.exec.record.metadata.SchemaBuilder v, v;
org.apache.drill.common.types.TypeProtos$MinorType v;
org.apache.drill.exec.physical.rowSet.DirectRowSet v;
org.apache.drill.common.types.TypeProtos$DataMode v;
org.apache.drill.exec.store.http.TestHttpPlugin v;
okhttp.mockwebserver.MockWebServer v;
java.lang.String v, v;
org.apache.drill.test.ClientFixture v, v;
org.apache.drill.test.QueryBuilder v, v;
org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet v;
org.apache.drill.exec.physical.rowSet.RowSetBuilder v, v;
org.apache.drill.exec.record.metadata.TupleMetadata v;
okhttp.mockwebserver.MockResponse v, v, v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: okhttp.mockwebserver.MockWebServer startServer()>();
label:
v = new okhttp.mockwebserver.MockResponse;
specialinvoke v.<okhttp.mockwebserver.MockResponse: void <init>()>();
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setResponseCode(int)>(200);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String TEST_JSON_RESPONSE>;
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setBody(java.lang.String)>(v);
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void enqueue(okhttp.mockwebserver.MockResponse)>(v);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>("SELECT _response_url FROM local.github\nWHERE `org` = true");
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.exec.physical.rowSet.DirectRowSet rowSet()>();
v = new org.apache.drill.exec.record.metadata.SchemaBuilder;
specialinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: void <init>()>();
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("_response_url", v, v);
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.TupleMetadata build()>();
v = new org.apache.drill.exec.physical.rowSet.RowSetBuilder;
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.exec.memory.BufferAllocator allocator()>();
specialinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: void <init>(org.apache.drill.exec.memory.BufferAllocator,org.apache.drill.exec.record.metadata.TupleMetadata)>(v, v);
v = newarray (java.lang.Object)[1];
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String makeUrl(java.lang.String)>("http://localhost:%d/orgs/true/repos");
v[0] = v;
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet build()>();
staticinvoke <org.apache.drill.test.rowSet.RowSetUtilities: void verify(org.apache.drill.exec.physical.rowSet.RowSet,org.apache.drill.exec.physical.rowSet.RowSet)>(v, v);
label:
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void close()>();
goto label;
label:
v := @caughtexception;
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
}
public void simpleTestWithMockServerWithURLParamsOfIntType() throws java.lang.Exception
{
java.lang.Throwable v;
java.lang.Object[] v;
org.apache.drill.exec.memory.BufferAllocator v;
org.apache.drill.exec.record.metadata.SchemaBuilder v, v;
org.apache.drill.common.types.TypeProtos$MinorType v;
org.apache.drill.exec.physical.rowSet.DirectRowSet v;
org.apache.drill.common.types.TypeProtos$DataMode v;
org.apache.drill.exec.store.http.TestHttpPlugin v;
okhttp.mockwebserver.MockWebServer v;
java.lang.String v, v;
org.apache.drill.test.ClientFixture v, v;
org.apache.drill.test.QueryBuilder v, v;
org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet v;
org.apache.drill.exec.physical.rowSet.RowSetBuilder v, v;
org.apache.drill.exec.record.metadata.TupleMetadata v;
okhttp.mockwebserver.MockResponse v, v, v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: okhttp.mockwebserver.MockWebServer startServer()>();
label:
v = new okhttp.mockwebserver.MockResponse;
specialinvoke v.<okhttp.mockwebserver.MockResponse: void <init>()>();
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setResponseCode(int)>(200);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String TEST_JSON_RESPONSE>;
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setBody(java.lang.String)>(v);
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void enqueue(okhttp.mockwebserver.MockResponse)>(v);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>("SELECT _response_url FROM local.github\nWHERE `org` = 1234");
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.exec.physical.rowSet.DirectRowSet rowSet()>();
v = new org.apache.drill.exec.record.metadata.SchemaBuilder;
specialinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: void <init>()>();
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("_response_url", v, v);
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.TupleMetadata build()>();
v = new org.apache.drill.exec.physical.rowSet.RowSetBuilder;
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.exec.memory.BufferAllocator allocator()>();
specialinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: void <init>(org.apache.drill.exec.memory.BufferAllocator,org.apache.drill.exec.record.metadata.TupleMetadata)>(v, v);
v = newarray (java.lang.Object)[1];
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String makeUrl(java.lang.String)>("http://localhost:%d/orgs/1234/repos");
v[0] = v;
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet build()>();
staticinvoke <org.apache.drill.test.rowSet.RowSetUtilities: void verify(org.apache.drill.exec.physical.rowSet.RowSet,org.apache.drill.exec.physical.rowSet.RowSet)>(v, v);
label:
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void close()>();
goto label;
label:
v := @caughtexception;
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
}
public void simpleTestWithUrlParamsInSubquery() throws java.lang.Exception
{
java.lang.Object[] v, v, v;
org.apache.drill.exec.memory.BufferAllocator v;
org.apache.drill.exec.record.metadata.SchemaBuilder v, v, v;
java.lang.Integer v, v, v;
org.apache.drill.common.types.TypeProtos$MinorType v, v;
org.apache.drill.exec.physical.rowSet.DirectRowSet v;
org.apache.drill.common.types.TypeProtos$DataMode v, v;
org.apache.drill.exec.store.http.TestHttpPlugin v;
org.apache.drill.test.ClientFixture v, v;
org.apache.drill.test.QueryBuilder v, v;
org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet v;
org.apache.drill.exec.physical.rowSet.RowSetBuilder v, v, v, v;
org.apache.drill.exec.record.metadata.TupleMetadata v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>("select pokemon_data.data.game_index AS game_index, pokemon_data.data.version.name AS name from (select flatten(game_indices) as data from live.pokemon where pokemon_name=\'ditto\' ) as pokemon_data WHERE pokemon_data.data.game_index=76");
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.exec.physical.rowSet.DirectRowSet rowSet()>();
v = new org.apache.drill.exec.record.metadata.SchemaBuilder;
specialinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: void <init>()>();
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType BIGINT>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("game_index", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("name", v, v);
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.TupleMetadata build()>();
v = new org.apache.drill.exec.physical.rowSet.RowSetBuilder;
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.exec.memory.BufferAllocator allocator()>();
specialinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: void <init>(org.apache.drill.exec.memory.BufferAllocator,org.apache.drill.exec.record.metadata.TupleMetadata)>(v, v);
v = newarray (java.lang.Object)[2];
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(76);
v[0] = v;
v[1] = "red";
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = newarray (java.lang.Object)[2];
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(76);
v[0] = v;
v[1] = "blue";
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = newarray (java.lang.Object)[2];
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(76);
v[0] = v;
v[1] = "yellow";
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet build()>();
staticinvoke <org.apache.drill.test.rowSet.RowSetUtilities: void verify(org.apache.drill.exec.physical.rowSet.RowSet,org.apache.drill.exec.physical.rowSet.RowSet)>(v, v);
return;
}
public void simpleTestWithMockServerWithDuplicateURLParams() throws java.lang.Exception
{
java.lang.Throwable v;
java.lang.Object[] v;
org.apache.drill.exec.memory.BufferAllocator v;
org.apache.drill.exec.record.metadata.SchemaBuilder v, v;
org.apache.drill.common.types.TypeProtos$MinorType v;
org.apache.drill.exec.physical.rowSet.DirectRowSet v;
org.apache.drill.common.types.TypeProtos$DataMode v;
org.apache.drill.exec.store.http.TestHttpPlugin v;
okhttp.mockwebserver.MockWebServer v;
java.lang.String v, v;
org.apache.drill.test.ClientFixture v, v;
org.apache.drill.test.QueryBuilder v, v;
org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet v;
org.apache.drill.exec.physical.rowSet.RowSetBuilder v, v;
org.apache.drill.exec.record.metadata.TupleMetadata v;
okhttp.mockwebserver.MockResponse v, v, v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: okhttp.mockwebserver.MockWebServer startServer()>();
label:
v = new okhttp.mockwebserver.MockResponse;
specialinvoke v.<okhttp.mockwebserver.MockResponse: void <init>()>();
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setResponseCode(int)>(200);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String TEST_JSON_RESPONSE>;
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setBody(java.lang.String)>(v);
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void enqueue(okhttp.mockwebserver.MockResponse)>(v);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>("SELECT _response_url FROM local.github2\nWHERE `org` = \'apache\'");
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.exec.physical.rowSet.DirectRowSet rowSet()>();
v = new org.apache.drill.exec.record.metadata.SchemaBuilder;
specialinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: void <init>()>();
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("_response_url", v, v);
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.TupleMetadata build()>();
v = new org.apache.drill.exec.physical.rowSet.RowSetBuilder;
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.exec.memory.BufferAllocator allocator()>();
specialinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: void <init>(org.apache.drill.exec.memory.BufferAllocator,org.apache.drill.exec.record.metadata.TupleMetadata)>(v, v);
v = newarray (java.lang.Object)[1];
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String makeUrl(java.lang.String)>("http://localhost:%d/orgs/apache/repos?org=apache");
v[0] = v;
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet build()>();
staticinvoke <org.apache.drill.test.rowSet.RowSetUtilities: void verify(org.apache.drill.exec.physical.rowSet.RowSet,org.apache.drill.exec.physical.rowSet.RowSet)>(v, v);
label:
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void close()>();
goto label;
label:
v := @caughtexception;
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
}
public void testUrlParamsInQueryString() throws java.lang.Exception
{
java.lang.Throwable v;
java.lang.Object[] v;
org.apache.drill.exec.memory.BufferAllocator v;
org.apache.drill.exec.record.metadata.SchemaBuilder v, v;
org.apache.drill.common.types.TypeProtos$MinorType v;
org.apache.drill.exec.physical.rowSet.DirectRowSet v;
org.apache.drill.common.types.TypeProtos$DataMode v;
org.apache.drill.exec.store.http.TestHttpPlugin v;
okhttp.mockwebserver.MockWebServer v;
java.lang.String v, v;
org.apache.drill.test.ClientFixture v, v;
org.apache.drill.test.QueryBuilder v, v;
org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet v;
org.apache.drill.exec.physical.rowSet.RowSetBuilder v, v;
org.apache.drill.exec.record.metadata.TupleMetadata v;
okhttp.mockwebserver.MockResponse v, v, v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: okhttp.mockwebserver.MockWebServer startServer()>();
label:
v = new okhttp.mockwebserver.MockResponse;
specialinvoke v.<okhttp.mockwebserver.MockResponse: void <init>()>();
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setResponseCode(int)>(200);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String TEST_JSON_RESPONSE>;
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setBody(java.lang.String)>(v);
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void enqueue(okhttp.mockwebserver.MockResponse)>(v);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>("SELECT _response_url FROM local.github3\nWHERE `org` = \'apache\' AND p1=\'param1\' AND p2=\'param2\'");
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.exec.physical.rowSet.DirectRowSet rowSet()>();
v = new org.apache.drill.exec.record.metadata.SchemaBuilder;
specialinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: void <init>()>();
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("_response_url", v, v);
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.TupleMetadata build()>();
v = new org.apache.drill.exec.physical.rowSet.RowSetBuilder;
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.exec.memory.BufferAllocator allocator()>();
specialinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: void <init>(org.apache.drill.exec.memory.BufferAllocator,org.apache.drill.exec.record.metadata.TupleMetadata)>(v, v);
v = newarray (java.lang.Object)[1];
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String makeUrl(java.lang.String)>("http://localhost:%d/orgs/apache/repos?p1=param1&p2=param2");
v[0] = v;
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet build()>();
staticinvoke <org.apache.drill.test.rowSet.RowSetUtilities: void verify(org.apache.drill.exec.physical.rowSet.RowSet,org.apache.drill.exec.physical.rowSet.RowSet)>(v, v);
label:
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void close()>();
goto label;
label:
v := @caughtexception;
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
}
public void testUrlParamError() throws java.lang.Exception
{
java.lang.Throwable v, v;
java.lang.Object[] v;
org.apache.drill.exec.store.http.TestHttpPlugin v;
okhttp.mockwebserver.MockWebServer v;
java.lang.String v, v;
okhttp.mockwebserver.MockResponse v, v, v;
boolean v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
label:
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: okhttp.mockwebserver.MockWebServer startServer()>();
label:
v = new okhttp.mockwebserver.MockResponse;
specialinvoke v.<okhttp.mockwebserver.MockResponse: void <init>()>();
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setResponseCode(int)>(200);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String TEST_JSON_RESPONSE>;
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setBody(java.lang.String)>(v);
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void enqueue(okhttp.mockwebserver.MockResponse)>(v);
v = newarray (java.lang.Object)[0];
staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: void run(java.lang.String,java.lang.Object[])>("SELECT _response_url FROM local.github\n", v);
staticinvoke <org.junit.Assert: void fail()>();
label:
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void close()>();
goto label;
label:
v := @caughtexception;
throw v;
label:
v := @caughtexception;
v = virtualinvoke v.<org.apache.drill.common.exceptions.UserException: java.lang.String getMessage()>();
v = virtualinvoke v.<java.lang.String: boolean contains(java.lang.CharSequence)>("API Query with URL Parameters must be populated.");
staticinvoke <org.junit.Assert: void assertTrue(boolean)>(v);
label:
return;
catch java.lang.Throwable from label to label with label;
catch org.apache.drill.common.exceptions.UserException from label to label with label;
}
public void testSerDeXML() throws java.lang.Exception
{
java.lang.Throwable v;
org.apache.drill.test.QueryBuilder v, v, v, v;
long v;
org.apache.drill.exec.store.http.TestHttpPlugin v;
okhttp.mockwebserver.MockWebServer v;
java.lang.String v, v;
okhttp.mockwebserver.MockResponse v, v, v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: okhttp.mockwebserver.MockWebServer startServer()>();
label:
v = new okhttp.mockwebserver.MockResponse;
specialinvoke v.<okhttp.mockwebserver.MockResponse: void <init>()>();
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setResponseCode(int)>(200);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String TEST_XML_RESPONSE>;
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setBody(java.lang.String)>(v);
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void enqueue(okhttp.mockwebserver.MockResponse)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>("SELECT COUNT(*) FROM local.mockxml.`xml?arg1=4` ");
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: java.lang.String explainJson()>();
v = virtualinvoke v.<org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder physical(java.lang.String)>(v);
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: long singletonLong()>();
staticinvoke <org.junit.Assert: void assertEquals(java.lang.String,long,long)>("Counts should match", 36L, v);
label:
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void close()>();
goto label;
label:
v := @caughtexception;
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
}
public void testSerDeCSV() throws java.lang.Exception
{
java.lang.Throwable v;
org.apache.drill.test.QueryBuilder v, v, v, v;
long v;
org.apache.drill.exec.store.http.TestHttpPlugin v;
okhttp.mockwebserver.MockWebServer v;
java.lang.String v, v;
okhttp.mockwebserver.MockResponse v, v, v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: okhttp.mockwebserver.MockWebServer startServer()>();
label:
v = new okhttp.mockwebserver.MockResponse;
specialinvoke v.<okhttp.mockwebserver.MockResponse: void <init>()>();
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setResponseCode(int)>(200);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String TEST_CSV_RESPONSE>;
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setBody(java.lang.String)>(v);
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void enqueue(okhttp.mockwebserver.MockResponse)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>("SELECT COUNT(*) FROM local.mockcsv.`csv?arg1=4` ");
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: java.lang.String explainJson()>();
v = virtualinvoke v.<org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder physical(java.lang.String)>(v);
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: long singletonLong()>();
staticinvoke <org.junit.Assert: void assertEquals(java.lang.String,long,long)>("Counts should match", 2L, v);
label:
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void close()>();
goto label;
label:
v := @caughtexception;
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
}
public void testSerDe() throws java.lang.Exception
{
java.lang.Throwable v;
org.apache.drill.test.QueryBuilder v, v, v, v;
long v;
org.apache.drill.exec.store.http.TestHttpPlugin v;
okhttp.mockwebserver.MockWebServer v;
java.lang.String v, v;
okhttp.mockwebserver.MockResponse v, v, v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: okhttp.mockwebserver.MockWebServer startServer()>();
label:
v = new okhttp.mockwebserver.MockResponse;
specialinvoke v.<okhttp.mockwebserver.MockResponse: void <init>()>();
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setResponseCode(int)>(200);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String TEST_JSON_RESPONSE>;
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setBody(java.lang.String)>(v);
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void enqueue(okhttp.mockwebserver.MockResponse)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>("SELECT COUNT(*) FROM local.sunrise.`?lat=36.7201600&lng=-4.4203400&date=2019-10-02`");
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: java.lang.String explainJson()>();
v = virtualinvoke v.<org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder physical(java.lang.String)>(v);
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: long singletonLong()>();
staticinvoke <org.junit.Assert: void assertEquals(java.lang.String,long,long)>("Counts should match", 1L, v);
label:
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void close()>();
goto label;
label:
v := @caughtexception;
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
}
public void testApiConfigRequiresTailSerDe() throws java.lang.Exception
{
org.apache.drill.test.QueryBuilder v, v;
org.apache.drill.test.QueryBuilder$PlanMatcher v, v;
org.apache.drill.exec.store.http.TestHttpPlugin v;
java.lang.String[] v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
v = virtualinvoke v.<org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>("SELECT * FROM local.mocktable");
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder$PlanMatcher detailedPlanMatcher()>();
v = newarray (java.lang.String)[1];
v[0] = "requireTail=false";
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder$PlanMatcher: org.apache.drill.test.QueryBuilder$PlanMatcher include(java.lang.String[])>(v);
virtualinvoke v.<org.apache.drill.test.QueryBuilder$PlanMatcher: void match()>();
return;
}
public void simpleTestWithMockServer() throws java.lang.Exception
{
org.apache.drill.exec.store.http.TestHttpPlugin v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
specialinvoke v.<org.apache.drill.exec.store.http.TestHttpPlugin: void doSimpleTestWithMockServer(java.lang.String)>("SELECT * FROM local.sunrise.`?lat=36.7201600&lng=-4.4203400&date=2019-10-02`");
return;
}
public void simpleTestWithMockServerWithParams() throws java.lang.Exception
{
org.apache.drill.exec.store.http.TestHttpPlugin v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
specialinvoke v.<org.apache.drill.exec.store.http.TestHttpPlugin: void doSimpleTestWithMockServer(java.lang.String)>("SELECT * FROM local.mocktable\nWHERE `lat` = 36.7201600 AND `lng` = -4.4203400 AND `date` = \'2019-10-02\'");
return;
}
public void testCsvResponse() throws java.lang.Exception
{
org.apache.drill.exec.memory.BufferAllocator v;
org.apache.drill.exec.record.metadata.SchemaBuilder v, v, v, v;
org.apache.drill.common.types.TypeProtos$MinorType v, v, v;
org.apache.drill.exec.store.http.TestHttpPlugin v;
okhttp.mockwebserver.MockWebServer v;
okhttp.mockwebserver.RecordedRequest v;
org.apache.drill.exec.physical.rowSet.RowSetBuilder v, v, v;
org.apache.drill.exec.record.metadata.TupleMetadata v;
okhttp.mockwebserver.MockResponse v, v, v;
java.lang.Throwable v;
java.lang.Object[] v, v;
org.apache.drill.exec.physical.rowSet.DirectRowSet v;
org.apache.drill.common.types.TypeProtos$DataMode v, v, v;
java.lang.String v, v, v;
org.apache.drill.test.ClientFixture v, v;
org.apache.drill.test.QueryBuilder v, v;
org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: okhttp.mockwebserver.MockWebServer startServer()>();
label:
v = new okhttp.mockwebserver.MockResponse;
specialinvoke v.<okhttp.mockwebserver.MockResponse: void <init>()>();
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setResponseCode(int)>(200);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String TEST_CSV_RESPONSE>;
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setBody(java.lang.String)>(v);
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void enqueue(okhttp.mockwebserver.MockResponse)>(v);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>("SELECT * FROM local.mockcsv.`csv?arg1=4`");
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.exec.physical.rowSet.DirectRowSet rowSet()>();
v = new org.apache.drill.exec.record.metadata.SchemaBuilder;
specialinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: void <init>()>();
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("col1", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("col2", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("col3", v, v);
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.TupleMetadata build()>();
v = new org.apache.drill.exec.physical.rowSet.RowSetBuilder;
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.exec.memory.BufferAllocator allocator()>();
specialinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: void <init>(org.apache.drill.exec.memory.BufferAllocator,org.apache.drill.exec.record.metadata.TupleMetadata)>(v, v);
v = newarray (java.lang.Object)[3];
v[0] = "1";
v[1] = "2";
v[2] = "3";
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = newarray (java.lang.Object)[3];
v[0] = "4";
v[1] = "5";
v[2] = "6";
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet build()>();
staticinvoke <org.apache.drill.test.rowSet.RowSetUtilities: void verify(org.apache.drill.exec.physical.rowSet.RowSet,org.apache.drill.exec.physical.rowSet.RowSet)>(v, v);
v = virtualinvoke v.<okhttp.mockwebserver.MockWebServer: okhttp.mockwebserver.RecordedRequest takeRequest()>();
v = virtualinvoke v.<okhttp.mockwebserver.RecordedRequest: java.lang.String getHeader(java.lang.String)>("Authorization");
staticinvoke <org.junit.Assert: void assertNotNull(java.lang.Object)>(v);
v = virtualinvoke v.<okhttp.mockwebserver.RecordedRequest: java.lang.String getHeader(java.lang.String)>("Authorization");
staticinvoke <org.junit.Assert: void assertEquals(java.lang.Object,java.lang.Object)>("Basic dXNlcjpwYXNz", v);
label:
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void close()>();
goto label;
label:
v := @caughtexception;
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
}
public void testXmlResponse() throws java.lang.Exception
{
org.apache.drill.exec.memory.BufferAllocator v;
org.apache.drill.exec.record.metadata.SchemaBuilder v, v, v, v, v, v, v, v;
org.apache.drill.common.types.TypeProtos$MinorType v, v, v, v, v, v, v;
org.apache.drill.exec.store.http.TestHttpPlugin v;
okhttp.mockwebserver.MockWebServer v;
org.apache.drill.exec.physical.rowSet.RowSetBuilder v, v, v, v, v, v;
org.apache.drill.exec.record.metadata.TupleMetadata v;
okhttp.mockwebserver.MockResponse v, v, v;
java.lang.Throwable v;
java.lang.Object[] v, v, v, v, v;
java.lang.Object[][] v, v, v, v, v, v, v, v, v, v;
org.apache.drill.exec.physical.rowSet.DirectRowSet v;
java.lang.String v;
org.apache.drill.test.ClientFixture v, v;
org.apache.drill.test.QueryBuilder v, v;
org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: okhttp.mockwebserver.MockWebServer startServer()>();
label:
v = new okhttp.mockwebserver.MockResponse;
specialinvoke v.<okhttp.mockwebserver.MockResponse: void <init>()>();
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setResponseCode(int)>(200);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String TEST_XML_RESPONSE>;
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setBody(java.lang.String)>(v);
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void enqueue(okhttp.mockwebserver.MockResponse)>(v);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>("SELECT * FROM local.mockxml.`?arg1=4` LIMIT 5");
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.exec.physical.rowSet.DirectRowSet rowSet()>();
v = new org.apache.drill.exec.record.metadata.SchemaBuilder;
specialinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: void <init>()>();
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType MAP>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType)>("attributes", v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder addNullable(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType)>("COMMON", v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder addNullable(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType)>("BOTANICAL", v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder addNullable(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType)>("ZONE", v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder addNullable(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType)>("LIGHT", v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder addNullable(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType)>("PRICE", v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder addNullable(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType)>("AVAILABILITY", v);
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.TupleMetadata buildSchema()>();
v = new org.apache.drill.exec.physical.rowSet.RowSetBuilder;
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.exec.memory.BufferAllocator allocator()>();
specialinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: void <init>(org.apache.drill.exec.memory.BufferAllocator,org.apache.drill.exec.record.metadata.TupleMetadata)>(v, v);
v = newarray (java.lang.Object)[7];
v = newarray (java.lang.Object[])[0];
v = staticinvoke <org.apache.drill.test.rowSet.RowSetUtilities: java.lang.Object[][] mapArray(java.lang.Object[][])>(v);
v[0] = v;
v[1] = "Bloodroot";
v[2] = "Sanguinaria canadensis";
v[3] = "4";
v[4] = "Mostly Shady";
v[5] = "$2.44";
v[6] = "031599";
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = newarray (java.lang.Object)[7];
v = newarray (java.lang.Object[])[0];
v = staticinvoke <org.apache.drill.test.rowSet.RowSetUtilities: java.lang.Object[][] mapArray(java.lang.Object[][])>(v);
v[0] = v;
v[1] = "Columbine";
v[2] = "Aquilegia canadensis";
v[3] = "3";
v[4] = "Mostly Shady";
v[5] = "$9.37";
v[6] = "030699";
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = newarray (java.lang.Object)[7];
v = newarray (java.lang.Object[])[0];
v = staticinvoke <org.apache.drill.test.rowSet.RowSetUtilities: java.lang.Object[][] mapArray(java.lang.Object[][])>(v);
v[0] = v;
v[1] = "Marsh Marigold";
v[2] = "Caltha palustris";
v[3] = "4";
v[4] = "Mostly Sunny";
v[5] = "$6.81";
v[6] = "051799";
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = newarray (java.lang.Object)[7];
v = newarray (java.lang.Object[])[0];
v = staticinvoke <org.apache.drill.test.rowSet.RowSetUtilities: java.lang.Object[][] mapArray(java.lang.Object[][])>(v);
v[0] = v;
v[1] = "Cowslip";
v[2] = "Caltha palustris";
v[3] = "4";
v[4] = "Mostly Shady";
v[5] = "$9.90";
v[6] = "030699";
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = newarray (java.lang.Object)[7];
v = newarray (java.lang.Object[])[0];
v = staticinvoke <org.apache.drill.test.rowSet.RowSetUtilities: java.lang.Object[][] mapArray(java.lang.Object[][])>(v);
v[0] = v;
v[1] = "Dutchman\'s-Breeches";
v[2] = "Dicentra cucullaria";
v[3] = "3";
v[4] = "Mostly Shady";
v[5] = "$6.44";
v[6] = "012099";
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet build()>();
staticinvoke <org.apache.drill.test.rowSet.RowSetUtilities: void verify(org.apache.drill.exec.physical.rowSet.RowSet,org.apache.drill.exec.physical.rowSet.RowSet)>(v, v);
label:
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void close()>();
goto label;
label:
v := @caughtexception;
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
}
public void testXmlWithSchemaResponse() throws java.lang.Exception
{
org.apache.drill.exec.memory.BufferAllocator v;
org.apache.drill.exec.record.metadata.SchemaBuilder v, v, v, v, v, v, v, v;
java.lang.Integer v, v, v, v, v;
org.apache.drill.common.types.TypeProtos$MinorType v, v, v, v, v, v, v;
org.apache.drill.exec.store.http.TestHttpPlugin v;
okhttp.mockwebserver.MockWebServer v;
org.apache.drill.exec.physical.rowSet.RowSetBuilder v, v, v, v, v, v;
org.apache.drill.exec.record.metadata.TupleMetadata v;
okhttp.mockwebserver.MockResponse v, v, v;
java.lang.Throwable v;
java.lang.Object[] v, v, v, v, v;
java.lang.Object[][] v, v, v, v, v, v, v, v, v, v;
org.apache.drill.exec.physical.rowSet.DirectRowSet v;
java.lang.String v;
org.apache.drill.test.ClientFixture v, v;
org.apache.drill.test.QueryBuilder v, v;
org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: okhttp.mockwebserver.MockWebServer startServer()>();
label:
v = new okhttp.mockwebserver.MockResponse;
specialinvoke v.<okhttp.mockwebserver.MockResponse: void <init>()>();
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setResponseCode(int)>(200);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String TEST_XML_RESPONSE>;
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setBody(java.lang.String)>(v);
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void enqueue(okhttp.mockwebserver.MockResponse)>(v);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>("SELECT * FROM local.mockxml_with_schema.`?arg1=4` LIMIT 5");
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.exec.physical.rowSet.DirectRowSet rowSet()>();
v = new org.apache.drill.exec.record.metadata.SchemaBuilder;
specialinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: void <init>()>();
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType MAP>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType)>("attributes", v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder addNullable(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType)>("COMMON", v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder addNullable(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType)>("BOTANICAL", v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType INT>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder addNullable(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType)>("ZONE", v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder addNullable(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType)>("LIGHT", v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder addNullable(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType)>("PRICE", v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder addNullable(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType)>("AVAILABILITY", v);
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.TupleMetadata buildSchema()>();
v = new org.apache.drill.exec.physical.rowSet.RowSetBuilder;
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.exec.memory.BufferAllocator allocator()>();
specialinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: void <init>(org.apache.drill.exec.memory.BufferAllocator,org.apache.drill.exec.record.metadata.TupleMetadata)>(v, v);
v = newarray (java.lang.Object)[7];
v = newarray (java.lang.Object[])[0];
v = staticinvoke <org.apache.drill.test.rowSet.RowSetUtilities: java.lang.Object[][] mapArray(java.lang.Object[][])>(v);
v[0] = v;
v[1] = "Bloodroot";
v[2] = "Sanguinaria canadensis";
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(4);
v[3] = v;
v[4] = "Mostly Shady";
v[5] = "$2.44";
v[6] = "031599";
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = newarray (java.lang.Object)[7];
v = newarray (java.lang.Object[])[0];
v = staticinvoke <org.apache.drill.test.rowSet.RowSetUtilities: java.lang.Object[][] mapArray(java.lang.Object[][])>(v);
v[0] = v;
v[1] = "Columbine";
v[2] = "Aquilegia canadensis";
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(3);
v[3] = v;
v[4] = "Mostly Shady";
v[5] = "$9.37";
v[6] = "030699";
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = newarray (java.lang.Object)[7];
v = newarray (java.lang.Object[])[0];
v = staticinvoke <org.apache.drill.test.rowSet.RowSetUtilities: java.lang.Object[][] mapArray(java.lang.Object[][])>(v);
v[0] = v;
v[1] = "Marsh Marigold";
v[2] = "Caltha palustris";
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(4);
v[3] = v;
v[4] = "Mostly Sunny";
v[5] = "$6.81";
v[6] = "051799";
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = newarray (java.lang.Object)[7];
v = newarray (java.lang.Object[])[0];
v = staticinvoke <org.apache.drill.test.rowSet.RowSetUtilities: java.lang.Object[][] mapArray(java.lang.Object[][])>(v);
v[0] = v;
v[1] = "Cowslip";
v[2] = "Caltha palustris";
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(4);
v[3] = v;
v[4] = "Mostly Shady";
v[5] = "$9.90";
v[6] = "030699";
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = newarray (java.lang.Object)[7];
v = newarray (java.lang.Object[])[0];
v = staticinvoke <org.apache.drill.test.rowSet.RowSetUtilities: java.lang.Object[][] mapArray(java.lang.Object[][])>(v);
v[0] = v;
v[1] = "Dutchman\'s-Breeches";
v[2] = "Dicentra cucullaria";
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(3);
v[3] = v;
v[4] = "Mostly Shady";
v[5] = "$6.44";
v[6] = "012099";
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet build()>();
staticinvoke <org.apache.drill.test.rowSet.RowSetUtilities: void verify(org.apache.drill.exec.physical.rowSet.RowSet,org.apache.drill.exec.physical.rowSet.RowSet)>(v, v);
label:
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void close()>();
goto label;
label:
v := @caughtexception;
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
}
public void testImplicitFieldsWithJSON() throws java.lang.Exception
{
org.apache.drill.exec.memory.BufferAllocator v;
org.apache.drill.exec.record.metadata.SchemaBuilder v, v, v, v, v;
java.lang.Integer v;
org.apache.drill.common.types.TypeProtos$MinorType v, v, v, v;
org.apache.drill.exec.store.http.TestHttpPlugin v;
okhttp.mockwebserver.MockWebServer v;
org.apache.drill.exec.physical.rowSet.RowSetBuilder v, v;
org.apache.drill.exec.record.metadata.TupleMetadata v;
okhttp.mockwebserver.MockResponse v, v, v;
java.lang.Throwable v;
java.lang.Object[] v;
org.apache.drill.exec.physical.rowSet.DirectRowSet v;
org.apache.drill.common.types.TypeProtos$DataMode v, v, v, v;
java.lang.String v, v;
org.apache.drill.test.ClientFixture v, v;
org.apache.drill.test.QueryBuilder v, v;
org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: okhttp.mockwebserver.MockWebServer startServer()>();
label:
v = new okhttp.mockwebserver.MockResponse;
specialinvoke v.<okhttp.mockwebserver.MockResponse: void <init>()>();
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setResponseCode(int)>(200);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String TEST_JSON_RESPONSE>;
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setBody(java.lang.String)>(v);
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void enqueue(okhttp.mockwebserver.MockResponse)>(v);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>("SELECT _response_code, _response_message, _response_protocol, _response_url FROM local.sunrise.`?lat=36.7201600&lng=-4.4203400&date=2019-10-02`");
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.exec.physical.rowSet.DirectRowSet rowSet()>();
v = new org.apache.drill.exec.record.metadata.SchemaBuilder;
specialinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: void <init>()>();
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType INT>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("_response_code", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("_response_message", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("_response_protocol", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("_response_url", v, v);
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.TupleMetadata build()>();
v = new org.apache.drill.exec.physical.rowSet.RowSetBuilder;
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.exec.memory.BufferAllocator allocator()>();
specialinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: void <init>(org.apache.drill.exec.memory.BufferAllocator,org.apache.drill.exec.record.metadata.TupleMetadata)>(v, v);
v = newarray (java.lang.Object)[4];
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(200);
v[0] = v;
v[1] = "OK";
v[2] = "http/1.1";
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String makeUrl(java.lang.String)>("http://localhost:%d/json?lat=36.7201600&lng=-4.4203400&date=2019-10-02");
v[3] = v;
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet build()>();
staticinvoke <org.apache.drill.test.rowSet.RowSetUtilities: void verify(org.apache.drill.exec.physical.rowSet.RowSet,org.apache.drill.exec.physical.rowSet.RowSet)>(v, v);
label:
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void close()>();
goto label;
label:
v := @caughtexception;
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
}
public void testImplicitFieldsWithCSV() throws java.lang.Exception
{
org.apache.drill.exec.memory.BufferAllocator v;
org.apache.drill.exec.record.metadata.SchemaBuilder v, v, v, v, v;
java.lang.Integer v, v;
org.apache.drill.common.types.TypeProtos$MinorType v, v, v, v;
org.apache.drill.exec.store.http.TestHttpPlugin v;
okhttp.mockwebserver.MockWebServer v;
org.apache.drill.exec.physical.rowSet.RowSetBuilder v, v, v;
org.apache.drill.exec.record.metadata.TupleMetadata v;
okhttp.mockwebserver.MockResponse v, v, v;
java.lang.Throwable v;
java.lang.Object[] v, v;
org.apache.drill.exec.physical.rowSet.DirectRowSet v;
org.apache.drill.common.types.TypeProtos$DataMode v, v, v, v;
java.lang.String v, v, v;
org.apache.drill.test.ClientFixture v, v;
org.apache.drill.test.QueryBuilder v, v;
org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: okhttp.mockwebserver.MockWebServer startServer()>();
label:
v = new okhttp.mockwebserver.MockResponse;
specialinvoke v.<okhttp.mockwebserver.MockResponse: void <init>()>();
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setResponseCode(int)>(200);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String TEST_CSV_RESPONSE>;
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setBody(java.lang.String)>(v);
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void enqueue(okhttp.mockwebserver.MockResponse)>(v);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>("SELECT _response_code, _response_message, _response_protocol, _response_url FROM local.mockcsv.`csv?arg1=4`");
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.exec.physical.rowSet.DirectRowSet rowSet()>();
v = new org.apache.drill.exec.record.metadata.SchemaBuilder;
specialinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: void <init>()>();
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType INT>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("_response_code", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("_response_message", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("_response_protocol", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("_response_url", v, v);
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.TupleMetadata build()>();
v = new org.apache.drill.exec.physical.rowSet.RowSetBuilder;
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.exec.memory.BufferAllocator allocator()>();
specialinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: void <init>(org.apache.drill.exec.memory.BufferAllocator,org.apache.drill.exec.record.metadata.TupleMetadata)>(v, v);
v = newarray (java.lang.Object)[4];
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(200);
v[0] = v;
v[1] = "OK";
v[2] = "http/1.1";
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String makeUrl(java.lang.String)>("http://localhost:%d/csvcsv?arg1=4");
v[3] = v;
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = newarray (java.lang.Object)[4];
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(200);
v[0] = v;
v[1] = "OK";
v[2] = "http/1.1";
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String makeUrl(java.lang.String)>("http://localhost:%d/csvcsv?arg1=4");
v[3] = v;
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet build()>();
staticinvoke <org.apache.drill.test.rowSet.RowSetUtilities: void verify(org.apache.drill.exec.physical.rowSet.RowSet,org.apache.drill.exec.physical.rowSet.RowSet)>(v, v);
label:
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void close()>();
goto label;
label:
v := @caughtexception;
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
}
public void testImplicitFieldsWithXML() throws java.lang.Exception
{
org.apache.drill.exec.memory.BufferAllocator v;
org.apache.drill.exec.record.metadata.SchemaBuilder v, v, v, v, v;
java.lang.Integer v, v, v, v, v;
org.apache.drill.common.types.TypeProtos$MinorType v, v, v, v;
org.apache.drill.exec.store.http.TestHttpPlugin v;
okhttp.mockwebserver.MockWebServer v;
org.apache.drill.exec.physical.rowSet.RowSetBuilder v, v, v, v, v, v;
org.apache.drill.exec.record.metadata.TupleMetadata v;
okhttp.mockwebserver.MockResponse v, v, v;
java.lang.Throwable v;
java.lang.Object[] v, v, v, v, v;
org.apache.drill.exec.physical.rowSet.DirectRowSet v;
org.apache.drill.common.types.TypeProtos$DataMode v, v, v, v;
java.lang.String v, v, v, v, v, v;
org.apache.drill.test.ClientFixture v, v;
org.apache.drill.test.QueryBuilder v, v;
org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: okhttp.mockwebserver.MockWebServer startServer()>();
label:
v = new okhttp.mockwebserver.MockResponse;
specialinvoke v.<okhttp.mockwebserver.MockResponse: void <init>()>();
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setResponseCode(int)>(200);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String TEST_XML_RESPONSE>;
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setBody(java.lang.String)>(v);
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void enqueue(okhttp.mockwebserver.MockResponse)>(v);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>("SELECT _response_code, _response_message, _response_protocol, _response_url FROM local.mockxml.`?arg1=4` LIMIT 5");
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.exec.physical.rowSet.DirectRowSet rowSet()>();
v = new org.apache.drill.exec.record.metadata.SchemaBuilder;
specialinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: void <init>()>();
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType INT>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("_response_code", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("_response_message", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("_response_protocol", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("_response_url", v, v);
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.TupleMetadata build()>();
v = new org.apache.drill.exec.physical.rowSet.RowSetBuilder;
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.exec.memory.BufferAllocator allocator()>();
specialinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: void <init>(org.apache.drill.exec.memory.BufferAllocator,org.apache.drill.exec.record.metadata.TupleMetadata)>(v, v);
v = newarray (java.lang.Object)[4];
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(200);
v[0] = v;
v[1] = "OK";
v[2] = "http/1.1";
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String makeUrl(java.lang.String)>("http://localhost:%d/xml?arg1=4");
v[3] = v;
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = newarray (java.lang.Object)[4];
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(200);
v[0] = v;
v[1] = "OK";
v[2] = "http/1.1";
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String makeUrl(java.lang.String)>("http://localhost:%d/xml?arg1=4");
v[3] = v;
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = newarray (java.lang.Object)[4];
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(200);
v[0] = v;
v[1] = "OK";
v[2] = "http/1.1";
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String makeUrl(java.lang.String)>("http://localhost:%d/xml?arg1=4");
v[3] = v;
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = newarray (java.lang.Object)[4];
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(200);
v[0] = v;
v[1] = "OK";
v[2] = "http/1.1";
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String makeUrl(java.lang.String)>("http://localhost:%d/xml?arg1=4");
v[3] = v;
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = newarray (java.lang.Object)[4];
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(200);
v[0] = v;
v[1] = "OK";
v[2] = "http/1.1";
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String makeUrl(java.lang.String)>("http://localhost:%d/xml?arg1=4");
v[3] = v;
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet build()>();
staticinvoke <org.apache.drill.test.rowSet.RowSetUtilities: void verify(org.apache.drill.exec.physical.rowSet.RowSet,org.apache.drill.exec.physical.rowSet.RowSet)>(v, v);
label:
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void close()>();
goto label;
label:
v := @caughtexception;
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
}
private void doSimpleTestWithMockServer(java.lang.String) throws java.lang.Exception
{
org.apache.drill.exec.memory.BufferAllocator v;
org.apache.drill.exec.record.metadata.SchemaBuilder v, v, v, v, v, v, v, v, v, v, v;
org.apache.drill.common.types.TypeProtos$MinorType v, v, v, v, v, v, v, v, v, v;
org.apache.drill.exec.store.http.TestHttpPlugin v;
okhttp.mockwebserver.MockWebServer v;
org.apache.drill.exec.physical.rowSet.RowSetBuilder v, v;
org.apache.drill.exec.record.metadata.TupleMetadata v;
okhttp.mockwebserver.MockResponse v, v, v;
java.lang.Throwable v;
java.lang.Object[] v;
org.apache.drill.exec.physical.rowSet.DirectRowSet v;
org.apache.drill.common.types.TypeProtos$DataMode v, v, v, v, v, v, v, v, v, v;
java.lang.String v, v;
org.apache.drill.test.ClientFixture v, v;
org.apache.drill.test.QueryBuilder v, v;
org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
v := @parameter: java.lang.String;
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: okhttp.mockwebserver.MockWebServer startServer()>();
label:
v = new okhttp.mockwebserver.MockResponse;
specialinvoke v.<okhttp.mockwebserver.MockResponse: void <init>()>();
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setResponseCode(int)>(200);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String TEST_JSON_RESPONSE>;
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setBody(java.lang.String)>(v);
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void enqueue(okhttp.mockwebserver.MockResponse)>(v);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>(v);
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.exec.physical.rowSet.DirectRowSet rowSet()>();
v = new org.apache.drill.exec.record.metadata.SchemaBuilder;
specialinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: void <init>()>();
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("sunrise", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("sunset", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("solar_noon", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("day_length", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("civil_twilight_begin", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("civil_twilight_end", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("nautical_twilight_begin", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("nautical_twilight_end", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("astronomical_twilight_begin", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("astronomical_twilight_end", v, v);
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.TupleMetadata build()>();
v = new org.apache.drill.exec.physical.rowSet.RowSetBuilder;
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.exec.memory.BufferAllocator allocator()>();
specialinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: void <init>(org.apache.drill.exec.memory.BufferAllocator,org.apache.drill.exec.record.metadata.TupleMetadata)>(v, v);
v = newarray (java.lang.Object)[10];
v[0] = "6:13:58 AM";
v[1] = "5:59:55 PM";
v[2] = "12:06:56 PM";
v[3] = "11:45:57";
v[4] = "5:48:14 AM";
v[5] = "6:25:38 PM";
v[6] = "5:18:16 AM";
v[7] = "6:55:36 PM";
v[8] = "4:48:07 AM";
v[9] = "7:25:45 PM";
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet build()>();
staticinvoke <org.apache.drill.test.rowSet.RowSetUtilities: void verify(org.apache.drill.exec.physical.rowSet.RowSet,org.apache.drill.exec.physical.rowSet.RowSet)>(v, v);
label:
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void close()>();
goto label;
label:
v := @caughtexception;
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
}
public void testPostWithMockServerAndNullPostbody() throws java.lang.Exception
{
org.apache.drill.exec.memory.BufferAllocator v;
org.apache.drill.exec.record.metadata.SchemaBuilder v, v, v;
org.apache.drill.common.types.TypeProtos$MinorType v, v, v, v, v, v, v, v, v, v, v;
org.apache.drill.exec.store.http.TestHttpPlugin v;
okhttp.mockwebserver.MockWebServer v;
okhttp.mockwebserver.RecordedRequest v;
org.apache.drill.exec.physical.rowSet.RowSetBuilder v, v;
org.apache.drill.exec.record.metadata.TupleMetadata v;
okhttp.mockwebserver.MockResponse v, v, v;
java.lang.Throwable v;
java.lang.Object[] v, v, v;
org.apache.drill.exec.physical.rowSet.DirectRowSet v;
org.apache.drill.common.types.TypeProtos$DataMode v, v, v, v, v, v, v, v, v, v, v;
java.lang.String v, v, v, v;
org.apache.drill.test.ClientFixture v, v;
org.apache.drill.test.QueryBuilder v, v;
org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet v;
org.apache.drill.exec.record.metadata.MapBuilder v, v, v, v, v, v, v, v, v, v, v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: okhttp.mockwebserver.MockWebServer startServer()>();
label:
v = new okhttp.mockwebserver.MockResponse;
specialinvoke v.<okhttp.mockwebserver.MockResponse: void <init>()>();
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setResponseCode(int)>(200);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String TEST_JSON_RESPONSE>;
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setBody(java.lang.String)>(v);
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void enqueue(okhttp.mockwebserver.MockResponse)>(v);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>("SELECT * FROM local.nullPost\n.`json?lat=36.7201600&lng=-4.4203400&date=2019-10-02`");
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.exec.physical.rowSet.DirectRowSet rowSet()>();
v = new org.apache.drill.exec.record.metadata.SchemaBuilder;
specialinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: void <init>()>();
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.MapBuilder addMap(java.lang.String)>("results");
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("sunrise", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("sunset", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("solar_noon", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("day_length", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("civil_twilight_begin", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("civil_twilight_end", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("nautical_twilight_begin", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("nautical_twilight_end", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("astronomical_twilight_begin", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("astronomical_twilight_end", v, v);
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder resumeSchema()>();
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("status", v, v);
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.TupleMetadata build()>();
v = new org.apache.drill.exec.physical.rowSet.RowSetBuilder;
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.exec.memory.BufferAllocator allocator()>();
specialinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: void <init>(org.apache.drill.exec.memory.BufferAllocator,org.apache.drill.exec.record.metadata.TupleMetadata)>(v, v);
v = newarray (java.lang.Object)[2];
v = newarray (java.lang.Object)[10];
v[0] = "6:13:58 AM";
v[1] = "5:59:55 PM";
v[2] = "12:06:56 PM";
v[3] = "11:45:57";
v[4] = "5:48:14 AM";
v[5] = "6:25:38 PM";
v[6] = "5:18:16 AM";
v[7] = "6:55:36 PM";
v[8] = "4:48:07 AM";
v[9] = "7:25:45 PM";
v = staticinvoke <org.apache.drill.test.rowSet.RowSetUtilities: java.lang.Object[] mapValue(java.lang.Object[])>(v);
v[0] = v;
v[1] = "OK";
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet build()>();
staticinvoke <org.apache.drill.test.rowSet.RowSetUtilities: void verify(org.apache.drill.exec.physical.rowSet.RowSet,org.apache.drill.exec.physical.rowSet.RowSet)>(v, v);
v = virtualinvoke v.<okhttp.mockwebserver.MockWebServer: okhttp.mockwebserver.RecordedRequest takeRequest()>();
v = virtualinvoke v.<okhttp.mockwebserver.RecordedRequest: java.lang.String getMethod()>();
staticinvoke <org.junit.Assert: void assertEquals(java.lang.Object,java.lang.Object)>("POST", v);
v = virtualinvoke v.<okhttp.mockwebserver.RecordedRequest: java.lang.String getHeader(java.lang.String)>("Authorization");
staticinvoke <org.junit.Assert: void assertNotNull(java.lang.Object)>(v);
v = virtualinvoke v.<okhttp.mockwebserver.RecordedRequest: java.lang.String getHeader(java.lang.String)>("Authorization");
staticinvoke <org.junit.Assert: void assertEquals(java.lang.Object,java.lang.Object)>("Basic Z2xvYmFsdXNlcjpnbG9iYWxwYXNz", v);
label:
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void close()>();
goto label;
label:
v := @caughtexception;
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
}
public void testPostWithMockServer() throws java.lang.Exception
{
org.apache.drill.exec.memory.BufferAllocator v;
org.apache.drill.exec.record.metadata.SchemaBuilder v, v, v;
org.apache.drill.common.types.TypeProtos$MinorType v, v, v, v, v, v, v, v, v, v, v;
org.apache.drill.exec.store.http.TestHttpPlugin v;
okhttp.mockwebserver.MockWebServer v;
okhttp.mockwebserver.RecordedRequest v;
org.apache.drill.exec.physical.rowSet.RowSetBuilder v, v;
org.apache.drill.exec.record.metadata.TupleMetadata v;
okhttp.mockwebserver.MockResponse v, v, v;
java.lang.Throwable v;
java.lang.Object[] v, v, v;
org.apache.drill.exec.physical.rowSet.DirectRowSet v;
org.apache.drill.common.types.TypeProtos$DataMode v, v, v, v, v, v, v, v, v, v, v;
java.lang.String v, v, v, v;
org.apache.drill.test.ClientFixture v, v;
org.apache.drill.test.QueryBuilder v, v;
org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet v;
org.apache.drill.exec.record.metadata.MapBuilder v, v, v, v, v, v, v, v, v, v, v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: okhttp.mockwebserver.MockWebServer startServer()>();
label:
v = new okhttp.mockwebserver.MockResponse;
specialinvoke v.<okhttp.mockwebserver.MockResponse: void <init>()>();
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setResponseCode(int)>(200);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String TEST_JSON_RESPONSE>;
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setBody(java.lang.String)>(v);
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void enqueue(okhttp.mockwebserver.MockResponse)>(v);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>("SELECT * FROM local.mockPost.`json?lat=36.7201600&lng=-4.4203400&date=2019-10-02`");
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.exec.physical.rowSet.DirectRowSet rowSet()>();
v = new org.apache.drill.exec.record.metadata.SchemaBuilder;
specialinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: void <init>()>();
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.MapBuilder addMap(java.lang.String)>("results");
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("sunrise", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("sunset", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("solar_noon", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("day_length", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("civil_twilight_begin", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("civil_twilight_end", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("nautical_twilight_begin", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("nautical_twilight_end", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("astronomical_twilight_begin", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("astronomical_twilight_end", v, v);
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder resumeSchema()>();
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("status", v, v);
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.TupleMetadata build()>();
v = new org.apache.drill.exec.physical.rowSet.RowSetBuilder;
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.exec.memory.BufferAllocator allocator()>();
specialinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: void <init>(org.apache.drill.exec.memory.BufferAllocator,org.apache.drill.exec.record.metadata.TupleMetadata)>(v, v);
v = newarray (java.lang.Object)[2];
v = newarray (java.lang.Object)[10];
v[0] = "6:13:58 AM";
v[1] = "5:59:55 PM";
v[2] = "12:06:56 PM";
v[3] = "11:45:57";
v[4] = "5:48:14 AM";
v[5] = "6:25:38 PM";
v[6] = "5:18:16 AM";
v[7] = "6:55:36 PM";
v[8] = "4:48:07 AM";
v[9] = "7:25:45 PM";
v = staticinvoke <org.apache.drill.test.rowSet.RowSetUtilities: java.lang.Object[] mapValue(java.lang.Object[])>(v);
v[0] = v;
v[1] = "OK";
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet build()>();
staticinvoke <org.apache.drill.test.rowSet.RowSetUtilities: void verify(org.apache.drill.exec.physical.rowSet.RowSet,org.apache.drill.exec.physical.rowSet.RowSet)>(v, v);
v = virtualinvoke v.<okhttp.mockwebserver.MockWebServer: okhttp.mockwebserver.RecordedRequest takeRequest()>();
v = virtualinvoke v.<okhttp.mockwebserver.RecordedRequest: java.lang.String getMethod()>();
staticinvoke <org.junit.Assert: void assertEquals(java.lang.Object,java.lang.Object)>("POST", v);
v = virtualinvoke v.<okhttp.mockwebserver.RecordedRequest: java.lang.String getHeader(java.lang.String)>("header1");
staticinvoke <org.junit.Assert: void assertEquals(java.lang.Object,java.lang.Object)>(v, "value1");
v = virtualinvoke v.<okhttp.mockwebserver.RecordedRequest: java.lang.String getHeader(java.lang.String)>("header2");
staticinvoke <org.junit.Assert: void assertEquals(java.lang.Object,java.lang.Object)>(v, "value2");
label:
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void close()>();
goto label;
label:
v := @caughtexception;
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
}
public void specificTestWithMockServer() throws java.lang.Exception
{
java.lang.Throwable v;
java.lang.Object[] v;
org.apache.drill.exec.memory.BufferAllocator v;
org.apache.drill.exec.record.metadata.SchemaBuilder v, v, v;
org.apache.drill.common.types.TypeProtos$MinorType v, v;
org.apache.drill.exec.physical.rowSet.DirectRowSet v;
org.apache.drill.common.types.TypeProtos$DataMode v, v;
org.apache.drill.exec.store.http.TestHttpPlugin v;
okhttp.mockwebserver.MockWebServer v;
java.lang.String v;
org.apache.drill.test.ClientFixture v, v;
org.apache.drill.test.QueryBuilder v, v;
org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet v;
org.apache.drill.exec.physical.rowSet.RowSetBuilder v, v;
org.apache.drill.exec.record.metadata.TupleMetadata v;
okhttp.mockwebserver.MockResponse v, v, v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: okhttp.mockwebserver.MockWebServer startServer()>();
label:
v = new okhttp.mockwebserver.MockResponse;
specialinvoke v.<okhttp.mockwebserver.MockResponse: void <init>()>();
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setResponseCode(int)>(200);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String TEST_JSON_RESPONSE>;
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setBody(java.lang.String)>(v);
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void enqueue(okhttp.mockwebserver.MockResponse)>(v);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>("SELECT sunrise, sunset FROM local.sunrise.`?lat=36.7201600&lng=-4.4203400&date=2019-10-02` AS t1");
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.exec.physical.rowSet.DirectRowSet rowSet()>();
v = new org.apache.drill.exec.record.metadata.SchemaBuilder;
specialinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: void <init>()>();
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("sunrise", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("sunset", v, v);
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.TupleMetadata buildSchema()>();
v = new org.apache.drill.exec.physical.rowSet.RowSetBuilder;
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.exec.memory.BufferAllocator allocator()>();
specialinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: void <init>(org.apache.drill.exec.memory.BufferAllocator,org.apache.drill.exec.record.metadata.TupleMetadata)>(v, v);
v = newarray (java.lang.Object)[2];
v[0] = "6:13:58 AM";
v[1] = "5:59:55 PM";
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet build()>();
staticinvoke <org.apache.drill.test.rowSet.RowSetUtilities: void verify(org.apache.drill.exec.physical.rowSet.RowSet,org.apache.drill.exec.physical.rowSet.RowSet)>(v, v);
label:
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void close()>();
goto label;
label:
v := @caughtexception;
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
}
public void testLimitPushdown() throws java.lang.Exception
{
org.apache.drill.test.QueryBuilder v, v;
org.apache.drill.test.QueryBuilder$PlanMatcher v, v;
org.apache.drill.exec.store.http.TestHttpPlugin v;
java.lang.String[] v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
v = virtualinvoke v.<org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>("SELECT sunrise, sunset FROM local.sunrise.`?lat=36.7201600&lng=-4.4203400&date=2019-10-02` AS t LIMIT 5");
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder$PlanMatcher planMatcher()>();
v = newarray (java.lang.String)[2];
v[0] = "Limit";
v[1] = "maxRecords=5";
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder$PlanMatcher: org.apache.drill.test.QueryBuilder$PlanMatcher include(java.lang.String[])>(v);
virtualinvoke v.<org.apache.drill.test.QueryBuilder$PlanMatcher: void match()>();
return;
}
public void testLimitPushdownWithFilter() throws java.lang.Exception
{
org.apache.drill.test.QueryBuilder v, v;
org.apache.drill.test.QueryBuilder$PlanMatcher v, v;
org.apache.drill.exec.store.http.TestHttpPlugin v;
java.lang.String[] v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
v = virtualinvoke v.<org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>("SELECT sunrise, sunset FROM live.sunrise WHERE `date`=\'2019-10-02\' LIMIT 5");
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder$PlanMatcher planMatcher()>();
v = newarray (java.lang.String)[3];
v[0] = "Limit";
v[1] = "maxRecords=5";
v[2] = "filters=\\{date=2019-10-02\\}";
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder$PlanMatcher: org.apache.drill.test.QueryBuilder$PlanMatcher include(java.lang.String[])>(v);
virtualinvoke v.<org.apache.drill.test.QueryBuilder$PlanMatcher: void match()>();
return;
}
public void testSlowResponse() throws java.lang.Exception
{
java.lang.Throwable v;
org.apache.drill.exec.store.http.TestHttpPlugin v;
okhttp.mockwebserver.MockWebServer v;
java.lang.String v, v, v, v;
org.apache.drill.test.ClientFixture v;
boolean v, v, v;
org.apache.drill.test.QueryBuilder v, v;
java.lang.Exception v;
java.util.concurrent.TimeUnit v;
okhttp.mockwebserver.MockResponse v, v, v, v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: okhttp.mockwebserver.MockWebServer startServer()>();
label:
v = new okhttp.mockwebserver.MockResponse;
specialinvoke v.<okhttp.mockwebserver.MockResponse: void <init>()>();
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setResponseCode(int)>(200);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String TEST_JSON_RESPONSE>;
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setBody(java.lang.String)>(v);
v = <java.util.concurrent.TimeUnit: java.util.concurrent.TimeUnit SECONDS>;
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setBodyDelay(long,java.util.concurrent.TimeUnit)>(6L, v);
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void enqueue(okhttp.mockwebserver.MockResponse)>(v);
label:
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>("SELECT sunrise AS sunrise, sunset AS sunset FROM local.sunrise.`?lat=36.7201600&lng=-4.4203400&date=2019-10-02` AS t1");
virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.exec.physical.rowSet.DirectRowSet rowSet()>();
staticinvoke <org.junit.Assert: void fail()>();
label:
goto label;
label:
v := @caughtexception;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.Exception)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Not timeout exception, \u0001");
v = virtualinvoke v.<java.lang.Exception: java.lang.String getMessage()>();
v = virtualinvoke v.<java.lang.String: boolean contains(java.lang.CharSequence)>("DATA_READ ERROR: timeout");
if v != 0 goto label;
v = virtualinvoke v.<java.lang.Exception: java.lang.String getMessage()>();
v = virtualinvoke v.<java.lang.String: boolean contains(java.lang.CharSequence)>("DATA_READ ERROR: Read timed out");
if v == 0 goto label;
label:
v = 1;
goto label;
label:
v = 0;
label:
staticinvoke <org.junit.Assert: void assertTrue(java.lang.String,boolean)>(v, v);
label:
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void close()>();
goto label;
label:
v := @caughtexception;
throw v;
label:
return;
catch java.lang.Exception from label to label with label;
catch java.lang.Throwable from label to label with label;
}
public void testZeroByteResponse() throws java.lang.Exception
{
java.lang.Throwable v;
org.apache.drill.test.QueryBuilder v, v;
org.apache.drill.exec.physical.rowSet.DirectRowSet v;
org.apache.drill.exec.store.http.TestHttpPlugin v;
okhttp.mockwebserver.MockWebServer v;
okhttp.mockwebserver.MockResponse v, v, v;
org.apache.drill.test.ClientFixture v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: okhttp.mockwebserver.MockWebServer startServer()>();
label:
v = new okhttp.mockwebserver.MockResponse;
specialinvoke v.<okhttp.mockwebserver.MockResponse: void <init>()>();
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setResponseCode(int)>(200);
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setBody(java.lang.String)>("");
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void enqueue(okhttp.mockwebserver.MockResponse)>(v);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>("SELECT * FROM local.sunrise.`?lat=36.7201600&lng=-4.4203400&date=2019-10-02`");
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.exec.physical.rowSet.DirectRowSet rowSet()>();
staticinvoke <org.junit.Assert: void assertNull(java.lang.Object)>(v);
label:
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void close()>();
goto label;
label:
v := @caughtexception;
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
}
public void testZeroByteResponseFromCSV() throws java.lang.Exception
{
java.lang.Throwable v;
org.apache.drill.test.QueryBuilder v, v;
org.apache.drill.exec.physical.rowSet.DirectRowSet v;
org.apache.drill.exec.store.http.TestHttpPlugin v;
okhttp.mockwebserver.MockWebServer v;
okhttp.mockwebserver.MockResponse v, v, v;
org.apache.drill.test.ClientFixture v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: okhttp.mockwebserver.MockWebServer startServer()>();
label:
v = new okhttp.mockwebserver.MockResponse;
specialinvoke v.<okhttp.mockwebserver.MockResponse: void <init>()>();
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setResponseCode(int)>(200);
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setBody(java.lang.String)>("");
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void enqueue(okhttp.mockwebserver.MockResponse)>(v);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>("SELECT * FROM local.mockcsv.`csv?arg1=4`");
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.exec.physical.rowSet.DirectRowSet rowSet()>();
staticinvoke <org.junit.Assert: void assertNull(java.lang.Object)>(v);
label:
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void close()>();
goto label;
label:
v := @caughtexception;
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
}
public void testEmptyJSONObjectResponse() throws java.lang.Exception
{
java.lang.Throwable v;
org.apache.drill.test.QueryBuilder v, v;
org.apache.drill.exec.physical.rowSet.DirectRowSet v;
org.apache.drill.exec.store.http.TestHttpPlugin v;
okhttp.mockwebserver.MockWebServer v;
okhttp.mockwebserver.MockResponse v, v, v;
org.apache.drill.test.ClientFixture v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: okhttp.mockwebserver.MockWebServer startServer()>();
label:
v = new okhttp.mockwebserver.MockResponse;
specialinvoke v.<okhttp.mockwebserver.MockResponse: void <init>()>();
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setResponseCode(int)>(200);
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setBody(java.lang.String)>("{}");
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void enqueue(okhttp.mockwebserver.MockResponse)>(v);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>("SELECT * FROM local.sunrise.`?lat=36.7201600&lng=-4.4203400&date=2019-10-02`");
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.exec.physical.rowSet.DirectRowSet rowSet()>();
staticinvoke <org.junit.Assert: void assertNull(java.lang.Object)>(v);
label:
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void close()>();
goto label;
label:
v := @caughtexception;
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
}
public void testNullContent() throws java.lang.Exception
{
java.lang.Throwable v;
org.apache.drill.test.QueryBuilder v, v;
org.apache.drill.exec.physical.rowSet.DirectRowSet v;
org.apache.drill.exec.store.http.TestHttpPlugin v;
okhttp.mockwebserver.MockWebServer v;
okhttp.mockwebserver.MockResponse v, v, v;
org.apache.drill.test.ClientFixture v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: okhttp.mockwebserver.MockWebServer startServer()>();
label:
v = new okhttp.mockwebserver.MockResponse;
specialinvoke v.<okhttp.mockwebserver.MockResponse: void <init>()>();
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setResponseCode(int)>(200);
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setBody(java.lang.String)>("{results: null}");
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void enqueue(okhttp.mockwebserver.MockResponse)>(v);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>("SELECT * FROM local.sunrise.`?lat=36.7201600&lng=-4.4203400&date=2019-10-02`");
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.exec.physical.rowSet.DirectRowSet rowSet()>();
staticinvoke <org.junit.Assert: void assertNull(java.lang.Object)>(v);
label:
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void close()>();
goto label;
label:
v := @caughtexception;
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
}
public void testEmptyContent() throws java.lang.Exception
{
java.lang.Throwable v;
java.lang.Object[] v;
org.apache.drill.exec.memory.BufferAllocator v;
org.apache.drill.exec.record.metadata.SchemaBuilder v;
org.apache.drill.exec.physical.rowSet.DirectRowSet v;
org.apache.drill.exec.store.http.TestHttpPlugin v;
okhttp.mockwebserver.MockWebServer v;
org.apache.drill.test.ClientFixture v, v;
org.apache.drill.test.QueryBuilder v, v;
org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet v;
org.apache.drill.exec.physical.rowSet.RowSetBuilder v, v;
org.apache.drill.exec.record.metadata.TupleMetadata v;
okhttp.mockwebserver.MockResponse v, v, v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: okhttp.mockwebserver.MockWebServer startServer()>();
label:
v = new okhttp.mockwebserver.MockResponse;
specialinvoke v.<okhttp.mockwebserver.MockResponse: void <init>()>();
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setResponseCode(int)>(200);
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setBody(java.lang.String)>("{results: {} }");
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void enqueue(okhttp.mockwebserver.MockResponse)>(v);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>("SELECT * FROM local.sunrise.`?lat=36.7201600&lng=-4.4203400&date=2019-10-02`");
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.exec.physical.rowSet.DirectRowSet rowSet()>();
v = new org.apache.drill.exec.record.metadata.SchemaBuilder;
specialinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: void <init>()>();
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.TupleMetadata buildSchema()>();
v = new org.apache.drill.exec.physical.rowSet.RowSetBuilder;
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.exec.memory.BufferAllocator allocator()>();
specialinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: void <init>(org.apache.drill.exec.memory.BufferAllocator,org.apache.drill.exec.record.metadata.TupleMetadata)>(v, v);
v = newarray (java.lang.Object)[0];
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet build()>();
staticinvoke <org.apache.drill.test.rowSet.RowSetUtilities: void verify(org.apache.drill.exec.physical.rowSet.RowSet,org.apache.drill.exec.physical.rowSet.RowSet)>(v, v);
label:
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void close()>();
goto label;
label:
v := @caughtexception;
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
}
public void testErrorResponse() throws java.lang.Exception
{
java.lang.Throwable v;
org.apache.drill.exec.store.http.TestHttpPlugin v;
okhttp.mockwebserver.MockWebServer v;
java.lang.String v;
org.apache.drill.test.ClientFixture v;
boolean v, v, v, v, v;
org.apache.drill.test.QueryBuilder v, v;
java.lang.Exception v;
okhttp.mockwebserver.MockResponse v, v, v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: okhttp.mockwebserver.MockWebServer startServer()>();
label:
v = new okhttp.mockwebserver.MockResponse;
specialinvoke v.<okhttp.mockwebserver.MockResponse: void <init>()>();
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setResponseCode(int)>(404);
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setBody(java.lang.String)>("{}");
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void enqueue(okhttp.mockwebserver.MockResponse)>(v);
label:
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>("SELECT * FROM local.sunrise.`?lat=36.7201600&lng=-4.4203400&date=2019-10-02`");
virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.exec.physical.rowSet.DirectRowSet rowSet()>();
staticinvoke <org.junit.Assert: void fail()>();
label:
goto label;
label:
v := @caughtexception;
v = virtualinvoke v.<java.lang.Exception: java.lang.String getMessage()>();
v = virtualinvoke v.<java.lang.String: boolean contains(java.lang.CharSequence)>("DATA_READ ERROR: HTTP request failed");
staticinvoke <org.junit.Assert: void assertTrue(boolean)>(v);
v = virtualinvoke v.<java.lang.String: boolean contains(java.lang.CharSequence)>("Response code: 404");
staticinvoke <org.junit.Assert: void assertTrue(boolean)>(v);
v = virtualinvoke v.<java.lang.String: boolean contains(java.lang.CharSequence)>("Response message: Client Error");
staticinvoke <org.junit.Assert: void assertTrue(boolean)>(v);
v = virtualinvoke v.<java.lang.String: boolean contains(java.lang.CharSequence)>("Connection: sunrise");
staticinvoke <org.junit.Assert: void assertTrue(boolean)>(v);
v = virtualinvoke v.<java.lang.String: boolean contains(java.lang.CharSequence)>("Plugin: local");
staticinvoke <org.junit.Assert: void assertTrue(boolean)>(v);
label:
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void close()>();
goto label;
label:
v := @caughtexception;
throw v;
label:
return;
catch java.lang.Exception from label to label with label;
catch java.lang.Throwable from label to label with label;
}
public void testNoErrorOn404() throws java.lang.Exception
{
org.apache.drill.exec.memory.BufferAllocator v;
org.apache.drill.exec.record.metadata.SchemaBuilder v, v, v, v, v;
java.lang.Integer v;
org.apache.drill.common.types.TypeProtos$MinorType v, v, v, v;
org.apache.drill.exec.store.http.TestHttpPlugin v;
okhttp.mockwebserver.MockWebServer v;
org.apache.drill.exec.physical.rowSet.RowSetBuilder v, v;
org.apache.drill.exec.record.metadata.TupleMetadata v;
okhttp.mockwebserver.MockResponse v, v, v;
java.lang.Throwable v;
java.lang.Object[] v;
org.apache.drill.exec.physical.rowSet.DirectRowSet v;
org.apache.drill.common.types.TypeProtos$DataMode v, v, v, v;
java.lang.String v;
org.apache.drill.test.ClientFixture v, v;
org.apache.drill.test.QueryBuilder v, v;
org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: okhttp.mockwebserver.MockWebServer startServer()>();
label:
v = new okhttp.mockwebserver.MockResponse;
specialinvoke v.<okhttp.mockwebserver.MockResponse: void <init>()>();
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setResponseCode(int)>(404);
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setBody(java.lang.String)>("{}");
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void enqueue(okhttp.mockwebserver.MockResponse)>(v);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>("SELECT _response_code, _response_message, _response_protocol, _response_url FROM local.mocktable");
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.exec.physical.rowSet.DirectRowSet rowSet()>();
v = new org.apache.drill.exec.record.metadata.SchemaBuilder;
specialinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: void <init>()>();
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType INT>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("_response_code", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("_response_message", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("_response_protocol", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("_response_url", v, v);
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.TupleMetadata build()>();
v = new org.apache.drill.exec.physical.rowSet.RowSetBuilder;
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.exec.memory.BufferAllocator allocator()>();
specialinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: void <init>(org.apache.drill.exec.memory.BufferAllocator,org.apache.drill.exec.record.metadata.TupleMetadata)>(v, v);
v = newarray (java.lang.Object)[4];
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(404);
v[0] = v;
v[1] = "Client Error";
v[2] = "http/1.1";
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String makeUrl(java.lang.String)>("http://localhost:%d/json");
v[3] = v;
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet build()>();
staticinvoke <org.apache.drill.test.rowSet.RowSetUtilities: void verify(org.apache.drill.exec.physical.rowSet.RowSet,org.apache.drill.exec.physical.rowSet.RowSet)>(v, v);
label:
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void close()>();
goto label;
label:
v := @caughtexception;
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
}
public void testHeaders() throws java.lang.Exception
{
org.apache.drill.exec.memory.BufferAllocator v;
org.apache.drill.exec.record.metadata.SchemaBuilder v, v, v, v, v, v, v, v, v, v, v;
org.apache.drill.common.types.TypeProtos$MinorType v, v, v, v, v, v, v, v, v, v;
org.apache.drill.exec.store.http.TestHttpPlugin v;
okhttp.mockwebserver.MockWebServer v;
okhttp.mockwebserver.RecordedRequest v;
org.apache.drill.exec.physical.rowSet.RowSetBuilder v, v;
org.apache.drill.exec.record.metadata.TupleMetadata v;
okhttp.mockwebserver.MockResponse v, v, v;
java.lang.Throwable v;
java.lang.Object[] v;
org.apache.drill.exec.physical.rowSet.DirectRowSet v;
org.apache.drill.common.types.TypeProtos$DataMode v, v, v, v, v, v, v, v, v, v;
java.lang.String v, v, v, v;
org.apache.drill.test.ClientFixture v, v;
org.apache.drill.test.QueryBuilder v, v;
org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: okhttp.mockwebserver.MockWebServer startServer()>();
label:
v = new okhttp.mockwebserver.MockResponse;
specialinvoke v.<okhttp.mockwebserver.MockResponse: void <init>()>();
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setResponseCode(int)>(200);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String TEST_JSON_RESPONSE>;
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setBody(java.lang.String)>(v);
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void enqueue(okhttp.mockwebserver.MockResponse)>(v);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>("SELECT * FROM local.sunrise.`?lat=36.7201600&lng=-4.4203400&date=2019-10-02`");
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.exec.physical.rowSet.DirectRowSet rowSet()>();
v = new org.apache.drill.exec.record.metadata.SchemaBuilder;
specialinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: void <init>()>();
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("sunrise", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("sunset", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("solar_noon", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("day_length", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("civil_twilight_begin", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("civil_twilight_end", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("nautical_twilight_begin", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("nautical_twilight_end", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("astronomical_twilight_begin", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("astronomical_twilight_end", v, v);
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.TupleMetadata build()>();
v = new org.apache.drill.exec.physical.rowSet.RowSetBuilder;
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.exec.memory.BufferAllocator allocator()>();
specialinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: void <init>(org.apache.drill.exec.memory.BufferAllocator,org.apache.drill.exec.record.metadata.TupleMetadata)>(v, v);
v = newarray (java.lang.Object)[10];
v[0] = "6:13:58 AM";
v[1] = "5:59:55 PM";
v[2] = "12:06:56 PM";
v[3] = "11:45:57";
v[4] = "5:48:14 AM";
v[5] = "6:25:38 PM";
v[6] = "5:18:16 AM";
v[7] = "6:55:36 PM";
v[8] = "4:48:07 AM";
v[9] = "7:25:45 PM";
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet build()>();
staticinvoke <org.apache.drill.test.rowSet.RowSetUtilities: void verify(org.apache.drill.exec.physical.rowSet.RowSet,org.apache.drill.exec.physical.rowSet.RowSet)>(v, v);
v = virtualinvoke v.<okhttp.mockwebserver.MockWebServer: okhttp.mockwebserver.RecordedRequest takeRequest()>();
v = virtualinvoke v.<okhttp.mockwebserver.RecordedRequest: java.lang.String getHeader(java.lang.String)>("header1");
staticinvoke <org.junit.Assert: void assertEquals(java.lang.Object,java.lang.Object)>("value1", v);
v = virtualinvoke v.<okhttp.mockwebserver.RecordedRequest: java.lang.String getHeader(java.lang.String)>("header2");
staticinvoke <org.junit.Assert: void assertEquals(java.lang.Object,java.lang.Object)>("value2", v);
v = virtualinvoke v.<okhttp.mockwebserver.RecordedRequest: java.lang.String getHeader(java.lang.String)>("Authorization");
staticinvoke <org.junit.Assert: void assertEquals(java.lang.Object,java.lang.Object)>("Basic dXNlcjpwYXNz", v);
label:
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void close()>();
goto label;
label:
v := @caughtexception;
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
}
public void testJsonPostWithMockServer() throws java.lang.Exception
{
org.apache.drill.exec.memory.BufferAllocator v;
org.apache.drill.exec.record.metadata.SchemaBuilder v, v, v;
org.apache.drill.common.types.TypeProtos$MinorType v, v, v, v, v, v, v, v, v, v, v;
org.apache.drill.exec.store.http.TestHttpPlugin v;
okhttp.mockwebserver.MockWebServer v;
okhttp.mockwebserver.RecordedRequest v;
org.apache.drill.exec.physical.rowSet.RowSetBuilder v, v;
org.apache.drill.exec.record.metadata.TupleMetadata v;
okhttp.mockwebserver.MockResponse v, v, v;
java.lang.Throwable v;
java.lang.Object[] v, v, v;
org.apache.drill.exec.physical.rowSet.DirectRowSet v;
org.apache.drill.common.types.TypeProtos$DataMode v, v, v, v, v, v, v, v, v, v, v;
java.lang.String v, v, v;
org.apache.drill.test.ClientFixture v, v;
okio.Buffer v;
org.apache.drill.test.QueryBuilder v, v;
org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet v;
org.apache.drill.exec.record.metadata.MapBuilder v, v, v, v, v, v, v, v, v, v, v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: okhttp.mockwebserver.MockWebServer startServer()>();
label:
v = new okhttp.mockwebserver.MockResponse;
specialinvoke v.<okhttp.mockwebserver.MockResponse: void <init>()>();
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setResponseCode(int)>(200);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String TEST_JSON_RESPONSE>;
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setBody(java.lang.String)>(v);
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void enqueue(okhttp.mockwebserver.MockResponse)>(v);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>("SELECT * FROM local.mockJsonPost");
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.exec.physical.rowSet.DirectRowSet rowSet()>();
v = new org.apache.drill.exec.record.metadata.SchemaBuilder;
specialinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: void <init>()>();
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.MapBuilder addMap(java.lang.String)>("results");
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("sunrise", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("sunset", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("solar_noon", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("day_length", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("civil_twilight_begin", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("civil_twilight_end", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("nautical_twilight_begin", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("nautical_twilight_end", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("astronomical_twilight_begin", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("astronomical_twilight_end", v, v);
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder resumeSchema()>();
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("status", v, v);
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.TupleMetadata build()>();
v = new org.apache.drill.exec.physical.rowSet.RowSetBuilder;
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.exec.memory.BufferAllocator allocator()>();
specialinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: void <init>(org.apache.drill.exec.memory.BufferAllocator,org.apache.drill.exec.record.metadata.TupleMetadata)>(v, v);
v = newarray (java.lang.Object)[2];
v = newarray (java.lang.Object)[10];
v[0] = "6:13:58 AM";
v[1] = "5:59:55 PM";
v[2] = "12:06:56 PM";
v[3] = "11:45:57";
v[4] = "5:48:14 AM";
v[5] = "6:25:38 PM";
v[6] = "5:18:16 AM";
v[7] = "6:55:36 PM";
v[8] = "4:48:07 AM";
v[9] = "7:25:45 PM";
v = staticinvoke <org.apache.drill.test.rowSet.RowSetUtilities: java.lang.Object[] mapValue(java.lang.Object[])>(v);
v[0] = v;
v[1] = "OK";
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet build()>();
staticinvoke <org.apache.drill.test.rowSet.RowSetUtilities: void verify(org.apache.drill.exec.physical.rowSet.RowSet,org.apache.drill.exec.physical.rowSet.RowSet)>(v, v);
v = virtualinvoke v.<okhttp.mockwebserver.MockWebServer: okhttp.mockwebserver.RecordedRequest takeRequest()>();
v = virtualinvoke v.<okhttp.mockwebserver.RecordedRequest: java.lang.String getMethod()>();
staticinvoke <org.junit.Assert: void assertEquals(java.lang.Object,java.lang.Object)>("POST", v);
v = virtualinvoke v.<okhttp.mockwebserver.RecordedRequest: okio.Buffer getBody()>();
v = virtualinvoke v.<okio.Buffer: java.lang.String toString()>();
staticinvoke <org.junit.Assert: void assertEquals(java.lang.Object,java.lang.Object)>("[text={\"key1\":\"value1\",\"key2\":\"value2\"}]", v);
label:
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void close()>();
goto label;
label:
v := @caughtexception;
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
}
public void testJsonPostWithFiltersAndMockServer() throws java.lang.Exception
{
org.apache.drill.exec.memory.BufferAllocator v;
org.apache.drill.exec.record.metadata.SchemaBuilder v, v, v;
org.apache.drill.common.types.TypeProtos$MinorType v, v, v, v, v, v, v, v, v, v, v;
org.apache.drill.exec.store.http.TestHttpPlugin v;
okhttp.mockwebserver.MockWebServer v;
okhttp.mockwebserver.RecordedRequest v;
org.apache.drill.exec.physical.rowSet.RowSetBuilder v, v;
org.apache.drill.exec.record.metadata.TupleMetadata v;
okhttp.mockwebserver.MockResponse v, v, v;
java.lang.Throwable v;
java.lang.Object[] v, v, v;
org.apache.drill.exec.physical.rowSet.DirectRowSet v;
org.apache.drill.common.types.TypeProtos$DataMode v, v, v, v, v, v, v, v, v, v, v;
java.lang.String v, v, v;
org.apache.drill.test.ClientFixture v, v;
okio.Buffer v;
org.apache.drill.test.QueryBuilder v, v;
org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet v;
org.apache.drill.exec.record.metadata.MapBuilder v, v, v, v, v, v, v, v, v, v, v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: okhttp.mockwebserver.MockWebServer startServer()>();
label:
v = new okhttp.mockwebserver.MockResponse;
specialinvoke v.<okhttp.mockwebserver.MockResponse: void <init>()>();
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setResponseCode(int)>(200);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String TEST_JSON_RESPONSE>;
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setBody(java.lang.String)>(v);
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void enqueue(okhttp.mockwebserver.MockResponse)>(v);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>("SELECT * FROM local.mockJsonPost WHERE lat=36.7201600 AND lng=-4.4203400");
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.exec.physical.rowSet.DirectRowSet rowSet()>();
v = new org.apache.drill.exec.record.metadata.SchemaBuilder;
specialinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: void <init>()>();
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.MapBuilder addMap(java.lang.String)>("results");
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("sunrise", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("sunset", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("solar_noon", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("day_length", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("civil_twilight_begin", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("civil_twilight_end", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("nautical_twilight_begin", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("nautical_twilight_end", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("astronomical_twilight_begin", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("astronomical_twilight_end", v, v);
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder resumeSchema()>();
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("status", v, v);
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.TupleMetadata build()>();
v = new org.apache.drill.exec.physical.rowSet.RowSetBuilder;
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.exec.memory.BufferAllocator allocator()>();
specialinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: void <init>(org.apache.drill.exec.memory.BufferAllocator,org.apache.drill.exec.record.metadata.TupleMetadata)>(v, v);
v = newarray (java.lang.Object)[2];
v = newarray (java.lang.Object)[10];
v[0] = "6:13:58 AM";
v[1] = "5:59:55 PM";
v[2] = "12:06:56 PM";
v[3] = "11:45:57";
v[4] = "5:48:14 AM";
v[5] = "6:25:38 PM";
v[6] = "5:18:16 AM";
v[7] = "6:55:36 PM";
v[8] = "4:48:07 AM";
v[9] = "7:25:45 PM";
v = staticinvoke <org.apache.drill.test.rowSet.RowSetUtilities: java.lang.Object[] mapValue(java.lang.Object[])>(v);
v[0] = v;
v[1] = "OK";
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet build()>();
staticinvoke <org.apache.drill.test.rowSet.RowSetUtilities: void verify(org.apache.drill.exec.physical.rowSet.RowSet,org.apache.drill.exec.physical.rowSet.RowSet)>(v, v);
v = virtualinvoke v.<okhttp.mockwebserver.MockWebServer: okhttp.mockwebserver.RecordedRequest takeRequest()>();
v = virtualinvoke v.<okhttp.mockwebserver.RecordedRequest: java.lang.String getMethod()>();
staticinvoke <org.junit.Assert: void assertEquals(java.lang.Object,java.lang.Object)>("POST", v);
v = virtualinvoke v.<okhttp.mockwebserver.RecordedRequest: okio.Buffer getBody()>();
v = virtualinvoke v.<okio.Buffer: java.lang.String toString()>();
staticinvoke <org.junit.Assert: void assertEquals(java.lang.Object,java.lang.Object)>("[size=71 text={\"key1\":\"value1\",\"key2\":\"value2\",\"lng\":\"-4.4203400\",\"lat\":\"36.72\u]", v);
label:
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void close()>();
goto label;
label:
v := @caughtexception;
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
}
public void testJsonPostWithFiltersAndNullPostBodyMockServer() throws java.lang.Exception
{
org.apache.drill.exec.memory.BufferAllocator v;
org.apache.drill.exec.record.metadata.SchemaBuilder v, v, v;
org.apache.drill.common.types.TypeProtos$MinorType v, v, v, v, v, v, v, v, v, v, v;
org.apache.drill.exec.store.http.TestHttpPlugin v;
okhttp.mockwebserver.MockWebServer v;
okhttp.mockwebserver.RecordedRequest v;
org.apache.drill.exec.physical.rowSet.RowSetBuilder v, v;
org.apache.drill.exec.record.metadata.TupleMetadata v;
okhttp.mockwebserver.MockResponse v, v, v;
java.lang.Throwable v;
java.lang.Object[] v, v, v;
org.apache.drill.exec.physical.rowSet.DirectRowSet v;
org.apache.drill.common.types.TypeProtos$DataMode v, v, v, v, v, v, v, v, v, v, v;
java.lang.String v, v, v;
org.apache.drill.test.ClientFixture v, v;
okio.Buffer v;
org.apache.drill.test.QueryBuilder v, v;
org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet v;
org.apache.drill.exec.record.metadata.MapBuilder v, v, v, v, v, v, v, v, v, v, v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: okhttp.mockwebserver.MockWebServer startServer()>();
label:
v = new okhttp.mockwebserver.MockResponse;
specialinvoke v.<okhttp.mockwebserver.MockResponse: void <init>()>();
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setResponseCode(int)>(200);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String TEST_JSON_RESPONSE>;
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setBody(java.lang.String)>(v);
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void enqueue(okhttp.mockwebserver.MockResponse)>(v);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>("SELECT * FROM local.mockJsonNullBodyPost WHERE lat=36.7201600 AND lng=-4.4203400");
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.exec.physical.rowSet.DirectRowSet rowSet()>();
v = new org.apache.drill.exec.record.metadata.SchemaBuilder;
specialinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: void <init>()>();
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.MapBuilder addMap(java.lang.String)>("results");
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("sunrise", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("sunset", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("solar_noon", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("day_length", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("civil_twilight_begin", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("civil_twilight_end", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("nautical_twilight_begin", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("nautical_twilight_end", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("astronomical_twilight_begin", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("astronomical_twilight_end", v, v);
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder resumeSchema()>();
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("status", v, v);
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.TupleMetadata build()>();
v = new org.apache.drill.exec.physical.rowSet.RowSetBuilder;
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.exec.memory.BufferAllocator allocator()>();
specialinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: void <init>(org.apache.drill.exec.memory.BufferAllocator,org.apache.drill.exec.record.metadata.TupleMetadata)>(v, v);
v = newarray (java.lang.Object)[2];
v = newarray (java.lang.Object)[10];
v[0] = "6:13:58 AM";
v[1] = "5:59:55 PM";
v[2] = "12:06:56 PM";
v[3] = "11:45:57";
v[4] = "5:48:14 AM";
v[5] = "6:25:38 PM";
v[6] = "5:18:16 AM";
v[7] = "6:55:36 PM";
v[8] = "4:48:07 AM";
v[9] = "7:25:45 PM";
v = staticinvoke <org.apache.drill.test.rowSet.RowSetUtilities: java.lang.Object[] mapValue(java.lang.Object[])>(v);
v[0] = v;
v[1] = "OK";
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet build()>();
staticinvoke <org.apache.drill.test.rowSet.RowSetUtilities: void verify(org.apache.drill.exec.physical.rowSet.RowSet,org.apache.drill.exec.physical.rowSet.RowSet)>(v, v);
v = virtualinvoke v.<okhttp.mockwebserver.MockWebServer: okhttp.mockwebserver.RecordedRequest takeRequest()>();
v = virtualinvoke v.<okhttp.mockwebserver.RecordedRequest: java.lang.String getMethod()>();
staticinvoke <org.junit.Assert: void assertEquals(java.lang.Object,java.lang.Object)>("POST", v);
v = virtualinvoke v.<okhttp.mockwebserver.RecordedRequest: okio.Buffer getBody()>();
v = virtualinvoke v.<okio.Buffer: java.lang.String toString()>();
staticinvoke <org.junit.Assert: void assertEquals(java.lang.Object,java.lang.Object)>("[text={\"lng\":\"-4.4203400\",\"lat\":\"36.7201600\"}]", v);
label:
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void close()>();
goto label;
label:
v := @caughtexception;
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
}
public void testParamsInPostBody() throws java.lang.Exception
{
org.apache.drill.exec.memory.BufferAllocator v;
org.apache.drill.exec.record.metadata.SchemaBuilder v, v, v;
org.apache.drill.common.types.TypeProtos$MinorType v, v, v, v, v, v, v, v, v, v, v;
org.apache.drill.exec.store.http.TestHttpPlugin v;
okhttp.mockwebserver.MockWebServer v;
okhttp.mockwebserver.RecordedRequest v;
org.apache.drill.exec.physical.rowSet.RowSetBuilder v, v;
org.apache.drill.exec.record.metadata.TupleMetadata v;
okhttp.mockwebserver.MockResponse v, v, v;
java.lang.Throwable v;
java.lang.Object[] v, v, v;
org.apache.drill.exec.physical.rowSet.DirectRowSet v;
org.apache.drill.common.types.TypeProtos$DataMode v, v, v, v, v, v, v, v, v, v, v;
java.lang.String v, v, v;
org.apache.drill.test.ClientFixture v, v;
okio.Buffer v;
org.apache.drill.test.QueryBuilder v, v;
org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet v;
org.apache.drill.exec.record.metadata.MapBuilder v, v, v, v, v, v, v, v, v, v, v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: okhttp.mockwebserver.MockWebServer startServer()>();
label:
v = new okhttp.mockwebserver.MockResponse;
specialinvoke v.<okhttp.mockwebserver.MockResponse: void <init>()>();
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setResponseCode(int)>(200);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String TEST_JSON_RESPONSE>;
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setBody(java.lang.String)>(v);
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void enqueue(okhttp.mockwebserver.MockResponse)>(v);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>("SELECT * FROM local.mockPostPushdown WHERE lat=36.7201600 AND lng=-4.4203400");
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.exec.physical.rowSet.DirectRowSet rowSet()>();
v = new org.apache.drill.exec.record.metadata.SchemaBuilder;
specialinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: void <init>()>();
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.MapBuilder addMap(java.lang.String)>("results");
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("sunrise", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("sunset", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("solar_noon", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("day_length", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("civil_twilight_begin", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("civil_twilight_end", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("nautical_twilight_begin", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("nautical_twilight_end", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("astronomical_twilight_begin", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("astronomical_twilight_end", v, v);
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder resumeSchema()>();
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("status", v, v);
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.TupleMetadata build()>();
v = new org.apache.drill.exec.physical.rowSet.RowSetBuilder;
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.exec.memory.BufferAllocator allocator()>();
specialinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: void <init>(org.apache.drill.exec.memory.BufferAllocator,org.apache.drill.exec.record.metadata.TupleMetadata)>(v, v);
v = newarray (java.lang.Object)[2];
v = newarray (java.lang.Object)[10];
v[0] = "6:13:58 AM";
v[1] = "5:59:55 PM";
v[2] = "12:06:56 PM";
v[3] = "11:45:57";
v[4] = "5:48:14 AM";
v[5] = "6:25:38 PM";
v[6] = "5:18:16 AM";
v[7] = "6:55:36 PM";
v[8] = "4:48:07 AM";
v[9] = "7:25:45 PM";
v = staticinvoke <org.apache.drill.test.rowSet.RowSetUtilities: java.lang.Object[] mapValue(java.lang.Object[])>(v);
v[0] = v;
v[1] = "OK";
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet build()>();
staticinvoke <org.apache.drill.test.rowSet.RowSetUtilities: void verify(org.apache.drill.exec.physical.rowSet.RowSet,org.apache.drill.exec.physical.rowSet.RowSet)>(v, v);
v = virtualinvoke v.<okhttp.mockwebserver.MockWebServer: okhttp.mockwebserver.RecordedRequest takeRequest()>();
v = virtualinvoke v.<okhttp.mockwebserver.RecordedRequest: java.lang.String getMethod()>();
staticinvoke <org.junit.Assert: void assertEquals(java.lang.Object,java.lang.Object)>("POST", v);
v = virtualinvoke v.<okhttp.mockwebserver.RecordedRequest: okio.Buffer getBody()>();
v = virtualinvoke v.<okio.Buffer: java.lang.String toString()>();
staticinvoke <org.junit.Assert: void assertEquals(java.lang.Object,java.lang.Object)>("[text=lng=-4.4203400&lat=36.7201600]", v);
label:
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void close()>();
goto label;
label:
v := @caughtexception;
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
}
public void testParamsInPostBodyAndStaticParams() throws java.lang.Exception
{
org.apache.drill.exec.memory.BufferAllocator v;
org.apache.drill.exec.record.metadata.SchemaBuilder v, v, v;
org.apache.drill.common.types.TypeProtos$MinorType v, v, v, v, v, v, v, v, v, v, v;
org.apache.drill.exec.store.http.TestHttpPlugin v;
okhttp.mockwebserver.MockWebServer v;
okhttp.mockwebserver.RecordedRequest v;
org.apache.drill.exec.physical.rowSet.RowSetBuilder v, v;
org.apache.drill.exec.record.metadata.TupleMetadata v;
okhttp.mockwebserver.MockResponse v, v, v;
java.lang.Throwable v;
java.lang.Object[] v, v, v;
org.apache.drill.exec.physical.rowSet.DirectRowSet v;
org.apache.drill.common.types.TypeProtos$DataMode v, v, v, v, v, v, v, v, v, v, v;
java.lang.String v, v, v;
org.apache.drill.test.ClientFixture v, v;
okio.Buffer v;
org.apache.drill.test.QueryBuilder v, v;
org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet v;
org.apache.drill.exec.record.metadata.MapBuilder v, v, v, v, v, v, v, v, v, v, v;
v := @this: org.apache.drill.exec.store.http.TestHttpPlugin;
v = staticinvoke <org.apache.drill.exec.store.http.TestHttpPlugin: okhttp.mockwebserver.MockWebServer startServer()>();
label:
v = new okhttp.mockwebserver.MockResponse;
specialinvoke v.<okhttp.mockwebserver.MockResponse: void <init>()>();
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setResponseCode(int)>(200);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: java.lang.String TEST_JSON_RESPONSE>;
v = virtualinvoke v.<okhttp.mockwebserver.MockResponse: okhttp.mockwebserver.MockResponse setBody(java.lang.String)>(v);
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void enqueue(okhttp.mockwebserver.MockResponse)>(v);
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>("SELECT * FROM local.mockPostPushdownWithStaticParams WHERE lat=36.7201600 AND lng=-4.4203400");
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.exec.physical.rowSet.DirectRowSet rowSet()>();
v = new org.apache.drill.exec.record.metadata.SchemaBuilder;
specialinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: void <init>()>();
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.MapBuilder addMap(java.lang.String)>("results");
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("sunrise", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("sunset", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("solar_noon", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("day_length", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("civil_twilight_begin", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("civil_twilight_end", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("nautical_twilight_begin", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("nautical_twilight_end", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("astronomical_twilight_begin", v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.MapBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("astronomical_twilight_end", v, v);
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.MapBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder resumeSchema()>();
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = <org.apache.drill.common.types.TypeProtos$DataMode: org.apache.drill.common.types.TypeProtos$DataMode OPTIONAL>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder add(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType,org.apache.drill.common.types.TypeProtos$DataMode)>("status", v, v);
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.TupleMetadata build()>();
v = new org.apache.drill.exec.physical.rowSet.RowSetBuilder;
v = <org.apache.drill.exec.store.http.TestHttpPlugin: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.exec.memory.BufferAllocator allocator()>();
specialinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: void <init>(org.apache.drill.exec.memory.BufferAllocator,org.apache.drill.exec.record.metadata.TupleMetadata)>(v, v);
v = newarray (java.lang.Object)[2];
v = newarray (java.lang.Object)[10];
v[0] = "6:13:58 AM";
v[1] = "5:59:55 PM";
v[2] = "12:06:56 PM";
v[3] = "11:45:57";
v[4] = "5:48:14 AM";
v[5] = "6:25:38 PM";
v[6] = "5:18:16 AM";
v[7] = "6:55:36 PM";
v[8] = "4:48:07 AM";
v[9] = "7:25:45 PM";
v = staticinvoke <org.apache.drill.test.rowSet.RowSetUtilities: java.lang.Object[] mapValue(java.lang.Object[])>(v);
v[0] = v;
v[1] = "OK";
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet build()>();
staticinvoke <org.apache.drill.test.rowSet.RowSetUtilities: void verify(org.apache.drill.exec.physical.rowSet.RowSet,org.apache.drill.exec.physical.rowSet.RowSet)>(v, v);
v = virtualinvoke v.<okhttp.mockwebserver.MockWebServer: okhttp.mockwebserver.RecordedRequest takeRequest()>();
v = virtualinvoke v.<okhttp.mockwebserver.RecordedRequest: java.lang.String getMethod()>();
staticinvoke <org.junit.Assert: void assertEquals(java.lang.Object,java.lang.Object)>("POST", v);
v = virtualinvoke v.<okhttp.mockwebserver.RecordedRequest: okio.Buffer getBody()>();
v = virtualinvoke v.<okio.Buffer: java.lang.String toString()>();
staticinvoke <org.junit.Assert: void assertEquals(java.lang.Object,java.lang.Object)>("[text=key1=value1&key2=value2&lng=-4.4203400&lat=36.7201600]", v);
label:
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void close()>();
goto label;
label:
v := @caughtexception;
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
}
public static okhttp.mockwebserver.MockWebServer startServer() throws java.io.IOException, java.lang.InterruptedException
{
int v;
okhttp.mockwebserver.MockWebServer v;
v = new okhttp.mockwebserver.MockWebServer;
specialinvoke v.<okhttp.mockwebserver.MockWebServer: void <init>()>();
v = (int) 44332;
virtualinvoke v.<okhttp.mockwebserver.MockWebServer: void start(int)>(v);
return v;
}
}