public class org.apache.drill.exec.store.googlesheets.TestGoogleSheetUtils extends java.lang.Object
{
public void <init>()
{
org.apache.drill.exec.store.googlesheets.TestGoogleSheetUtils v;
v := @this: org.apache.drill.exec.store.googlesheets.TestGoogleSheetUtils;
specialinvoke v.<java.lang.Object: void <init>()>();
return;
}
public void testSchemaInference()
{
java.lang.Integer v;
org.apache.drill.common.types.TypeProtos$MinorType v, v, v, v, v, v;
java.util.Map v;
org.apache.drill.common.expression.SchemaPath v, v, v, v, v, v, v, v;
java.util.List v, v, v, v, v, v;
java.io.Serializable[] v;
java.lang.String[] v, v, v, v;
org.apache.drill.exec.store.googlesheets.TestGoogleSheetUtils v;
java.util.ArrayList v, v, v, v, v, v, v;
int v;
org.apache.drill.common.expression.SchemaPath[] v;
java.lang.Object v, v, v;
v := @this: org.apache.drill.exec.store.googlesheets.TestGoogleSheetUtils;
v = new java.util.ArrayList;
specialinvoke v.<java.util.ArrayList: void <init>()>();
v = new java.util.ArrayList;
v = newarray (java.lang.String)[3];
v[0] = "Col1";
v[1] = "Col2";
v[2] = "Col3";
v = staticinvoke <java.util.Arrays: java.util.List asList(java.lang.Object[])>(v);
specialinvoke v.<java.util.ArrayList: void <init>(java.util.Collection)>(v);
v = new org.apache.drill.common.expression.SchemaPath;
v = staticinvoke <org.apache.drill.common.expression.SchemaPath: org.apache.drill.common.expression.SchemaPath parseFromString(java.lang.String)>("Col1");
specialinvoke v.<org.apache.drill.common.expression.SchemaPath: void <init>(org.apache.drill.common.expression.SchemaPath)>(v);
v = new java.util.ArrayList;
v = newarray (org.apache.drill.common.expression.SchemaPath)[3];
v = new org.apache.drill.common.expression.SchemaPath;
v = staticinvoke <org.apache.drill.common.expression.SchemaPath: org.apache.drill.common.expression.SchemaPath parseFromString(java.lang.String)>("Col1");
specialinvoke v.<org.apache.drill.common.expression.SchemaPath: void <init>(org.apache.drill.common.expression.SchemaPath)>(v);
v[0] = v;
v = new org.apache.drill.common.expression.SchemaPath;
v = staticinvoke <org.apache.drill.common.expression.SchemaPath: org.apache.drill.common.expression.SchemaPath parseFromString(java.lang.String)>("Col2");
specialinvoke v.<org.apache.drill.common.expression.SchemaPath: void <init>(org.apache.drill.common.expression.SchemaPath)>(v);
v[1] = v;
v = new org.apache.drill.common.expression.SchemaPath;
v = staticinvoke <org.apache.drill.common.expression.SchemaPath: org.apache.drill.common.expression.SchemaPath parseFromString(java.lang.String)>("Col3");
specialinvoke v.<org.apache.drill.common.expression.SchemaPath: void <init>(org.apache.drill.common.expression.SchemaPath)>(v);
v[2] = v;
v = staticinvoke <java.util.Arrays: java.util.List asList(java.lang.Object[])>(v);
specialinvoke v.<java.util.ArrayList: void <init>(java.util.Collection)>(v);
interfaceinvoke v.<java.util.List: boolean add(java.lang.Object)>(v);
v = new java.util.ArrayList;
v = newarray (java.io.Serializable)[2];
v[0] = "Rosaline Thales";
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(1);
v[1] = v;
v = staticinvoke <java.util.Arrays: java.util.List asList(java.lang.Object[])>(v);
specialinvoke v.<java.util.ArrayList: void <init>(java.util.Collection)>(v);
interfaceinvoke v.<java.util.List: boolean add(java.lang.Object)>(v);
v = new java.util.ArrayList;
v = newarray (java.lang.String)[3];
v[0] = "Abdolhossein Detlev";
v[1] = "2.0001";
v[2] = "2020-04-30";
v = staticinvoke <java.util.Arrays: java.util.List asList(java.lang.Object[])>(v);
specialinvoke v.<java.util.ArrayList: void <init>(java.util.Collection)>(v);
interfaceinvoke v.<java.util.List: boolean add(java.lang.Object)>(v);
v = new java.util.ArrayList;
v = newarray (java.lang.String)[3];
v[0] = "Yosuke  Simon";
v[1] = "";
v[2] = "2020-05-22";
v = staticinvoke <java.util.Arrays: java.util.List asList(java.lang.Object[])>(v);
specialinvoke v.<java.util.ArrayList: void <init>(java.util.Collection)>(v);
interfaceinvoke v.<java.util.List: boolean add(java.lang.Object)>(v);
v = new java.util.ArrayList;
v = newarray (java.lang.String)[3];
v[0] = "";
v[1] = "4";
v[2] = "2020-06-30";
v = staticinvoke <java.util.Arrays: java.util.List asList(java.lang.Object[])>(v);
specialinvoke v.<java.util.ArrayList: void <init>(java.util.Collection)>(v);
interfaceinvoke v.<java.util.List: boolean add(java.lang.Object)>(v);
v = staticinvoke <org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils: java.util.Map getColumnMap(java.util.List,java.util.List,boolean)>(v, v, 0);
v = interfaceinvoke v.<java.util.Map: int size()>();
staticinvoke <org.junit.Assert: void assertEquals(long,long)>(3L, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType VARCHAR>;
v = interfaceinvoke v.<java.util.Map: java.lang.Object get(java.lang.Object)>("Col1");
v = virtualinvoke v.<org.apache.drill.exec.store.googlesheets.GoogleSheetsColumn: org.apache.drill.common.types.TypeProtos$MinorType getDrillDataType()>();
staticinvoke <org.junit.Assert: void assertEquals(java.lang.Object,java.lang.Object)>(v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType FLOAT8>;
v = interfaceinvoke v.<java.util.Map: java.lang.Object get(java.lang.Object)>("Col2");
v = virtualinvoke v.<org.apache.drill.exec.store.googlesheets.GoogleSheetsColumn: org.apache.drill.common.types.TypeProtos$MinorType getDrillDataType()>();
staticinvoke <org.junit.Assert: void assertEquals(java.lang.Object,java.lang.Object)>(v, v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType DATE>;
v = interfaceinvoke v.<java.util.Map: java.lang.Object get(java.lang.Object)>("Col3");
v = virtualinvoke v.<org.apache.drill.exec.store.googlesheets.GoogleSheetsColumn: org.apache.drill.common.types.TypeProtos$MinorType getDrillDataType()>();
staticinvoke <org.junit.Assert: void assertEquals(java.lang.Object,java.lang.Object)>(v, v);
return;
}
public void testBuildSchema()
{
org.apache.drill.exec.record.metadata.SchemaBuilder v, v, v, v;
java.lang.Integer v;
org.apache.drill.common.types.TypeProtos$MinorType v, v, v;
java.util.Map v;
org.apache.drill.common.expression.SchemaPath v, v, v, v, v, v;
org.apache.drill.exec.record.metadata.TupleMetadata v, v;
java.util.List v, v, v, v, v, v;
java.io.Serializable[] v;
java.lang.String[] v, v, v, v;
org.apache.drill.exec.store.googlesheets.TestGoogleSheetUtils v;
java.util.ArrayList v, v, v, v, v, v, v;
org.apache.drill.common.expression.SchemaPath[] v;
v := @this: org.apache.drill.exec.store.googlesheets.TestGoogleSheetUtils;
v = new java.util.ArrayList;
specialinvoke v.<java.util.ArrayList: void <init>()>();
v = new java.util.ArrayList;
v = newarray (org.apache.drill.common.expression.SchemaPath)[3];
v = new org.apache.drill.common.expression.SchemaPath;
v = staticinvoke <org.apache.drill.common.expression.SchemaPath: org.apache.drill.common.expression.SchemaPath parseFromString(java.lang.String)>("Col1");
specialinvoke v.<org.apache.drill.common.expression.SchemaPath: void <init>(org.apache.drill.common.expression.SchemaPath)>(v);
v[0] = v;
v = new org.apache.drill.common.expression.SchemaPath;
v = staticinvoke <org.apache.drill.common.expression.SchemaPath: org.apache.drill.common.expression.SchemaPath parseFromString(java.lang.String)>("Col2");
specialinvoke v.<org.apache.drill.common.expression.SchemaPath: void <init>(org.apache.drill.common.expression.SchemaPath)>(v);
v[1] = v;
v = new org.apache.drill.common.expression.SchemaPath;
v = staticinvoke <org.apache.drill.common.expression.SchemaPath: org.apache.drill.common.expression.SchemaPath parseFromString(java.lang.String)>("Col3");
specialinvoke v.<org.apache.drill.common.expression.SchemaPath: void <init>(org.apache.drill.common.expression.SchemaPath)>(v);
v[2] = v;
v = staticinvoke <java.util.Arrays: java.util.List asList(java.lang.Object[])>(v);
specialinvoke v.<java.util.ArrayList: void <init>(java.util.Collection)>(v);
v = new java.util.ArrayList;
v = newarray (java.lang.String)[3];
v[0] = "Col1";
v[1] = "Col2";
v[2] = "Col3";
v = staticinvoke <java.util.Arrays: java.util.List asList(java.lang.Object[])>(v);
specialinvoke v.<java.util.ArrayList: void <init>(java.util.Collection)>(v);
interfaceinvoke v.<java.util.List: boolean add(java.lang.Object)>(v);
v = new java.util.ArrayList;
v = newarray (java.io.Serializable)[2];
v[0] = "Rosaline Thales";
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(1);
v[1] = v;
v = staticinvoke <java.util.Arrays: java.util.List asList(java.lang.Object[])>(v);
specialinvoke v.<java.util.ArrayList: void <init>(java.util.Collection)>(v);
interfaceinvoke v.<java.util.List: boolean add(java.lang.Object)>(v);
v = new java.util.ArrayList;
v = newarray (java.lang.String)[3];
v[0] = "Abdolhossein Detlev";
v[1] = "2.0001";
v[2] = "2020-04-30";
v = staticinvoke <java.util.Arrays: java.util.List asList(java.lang.Object[])>(v);
specialinvoke v.<java.util.ArrayList: void <init>(java.util.Collection)>(v);
interfaceinvoke v.<java.util.List: boolean add(java.lang.Object)>(v);
v = new java.util.ArrayList;
v = newarray (java.lang.String)[3];
v[0] = "Yosuke  Simon";
v[1] = "";
v[2] = "2020-05-22";
v = staticinvoke <java.util.Arrays: java.util.List asList(java.lang.Object[])>(v);
specialinvoke v.<java.util.ArrayList: void <init>(java.util.Collection)>(v);
interfaceinvoke v.<java.util.List: boolean add(java.lang.Object)>(v);
v = new java.util.ArrayList;
v = newarray (java.lang.String)[3];
v[0] = "";
v[1] = "4";
v[2] = "2020-06-30";
v = staticinvoke <java.util.Arrays: java.util.List asList(java.lang.Object[])>(v);
specialinvoke v.<java.util.ArrayList: void <init>(java.util.Collection)>(v);
interfaceinvoke v.<java.util.List: boolean add(java.lang.Object)>(v);
v = staticinvoke <org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils: java.util.Map getColumnMap(java.util.List,java.util.List,boolean)>(v, v, 0);
v = staticinvoke <org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils: org.apache.drill.exec.record.metadata.TupleMetadata buildSchema(java.util.Map)>(v);
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 = 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)>("Col1", v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType FLOAT8>;
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)>("Col2", v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType DATE>;
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)>("Col3", v);
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.TupleMetadata build()>();
staticinvoke <org.junit.Assert: void assertEquals(java.lang.Object,java.lang.Object)>(v, v);
return;
}
public void testColumnProjector()
{
org.apache.drill.exec.store.googlesheets.TestGoogleSheetUtils v;
java.util.LinkedHashMap v;
int v;
org.apache.drill.exec.store.googlesheets.GoogleSheetsColumn v, v, v, v, v, v, v;
java.util.List v;
org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils$DATA_TYPES v, v, v, v, v, v, v;
v := @this: org.apache.drill.exec.store.googlesheets.TestGoogleSheetUtils;
v = new java.util.LinkedHashMap;
specialinvoke v.<java.util.LinkedHashMap: void <init>()>();
v = new org.apache.drill.exec.store.googlesheets.GoogleSheetsColumn;
v = <org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils$DATA_TYPES: org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils$DATA_TYPES UNKNOWN>;
specialinvoke v.<org.apache.drill.exec.store.googlesheets.GoogleSheetsColumn: void <init>(java.lang.String,org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils$DATA_TYPES,int,int)>("f1", v, 0, 0);
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>("f1", v);
v = new org.apache.drill.exec.store.googlesheets.GoogleSheetsColumn;
v = <org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils$DATA_TYPES: org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils$DATA_TYPES UNKNOWN>;
specialinvoke v.<org.apache.drill.exec.store.googlesheets.GoogleSheetsColumn: void <init>(java.lang.String,org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils$DATA_TYPES,int,int)>("f2", v, 1, 1);
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>("f2", v);
v = new org.apache.drill.exec.store.googlesheets.GoogleSheetsColumn;
v = <org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils$DATA_TYPES: org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils$DATA_TYPES UNKNOWN>;
specialinvoke v.<org.apache.drill.exec.store.googlesheets.GoogleSheetsColumn: void <init>(java.lang.String,org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils$DATA_TYPES,int,int)>("f3", v, 2, 2);
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>("f3", v);
v = new org.apache.drill.exec.store.googlesheets.GoogleSheetsColumn;
v = <org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils$DATA_TYPES: org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils$DATA_TYPES UNKNOWN>;
specialinvoke v.<org.apache.drill.exec.store.googlesheets.GoogleSheetsColumn: void <init>(java.lang.String,org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils$DATA_TYPES,int,int)>("f4", v, 3, 3);
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>("f4", v);
v = new org.apache.drill.exec.store.googlesheets.GoogleSheetsColumn;
v = <org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils$DATA_TYPES: org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils$DATA_TYPES UNKNOWN>;
specialinvoke v.<org.apache.drill.exec.store.googlesheets.GoogleSheetsColumn: void <init>(java.lang.String,org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils$DATA_TYPES,int,int)>("f6", v, 5, 4);
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>("f6", v);
v = new org.apache.drill.exec.store.googlesheets.GoogleSheetsColumn;
v = <org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils$DATA_TYPES: org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils$DATA_TYPES UNKNOWN>;
specialinvoke v.<org.apache.drill.exec.store.googlesheets.GoogleSheetsColumn: void <init>(java.lang.String,org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils$DATA_TYPES,int,int)>("f9", v, 8, 5);
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>("f9", v);
v = new org.apache.drill.exec.store.googlesheets.GoogleSheetsColumn;
v = <org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils$DATA_TYPES: org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils$DATA_TYPES UNKNOWN>;
specialinvoke v.<org.apache.drill.exec.store.googlesheets.GoogleSheetsColumn: void <init>(java.lang.String,org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils$DATA_TYPES,int,int)>("f10", v, 9, 6);
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>("f10", v);
v = staticinvoke <org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils: java.util.List getProjectedRanges(java.lang.String,java.util.Map)>("Sheet1", v);
v = interfaceinvoke v.<java.util.List: int size()>();
staticinvoke <org.junit.Assert: void assertEquals(long,long)>(3L, v);
return;
}
public void testColumnProjectorWithSingleColumns()
{
org.apache.drill.exec.store.googlesheets.TestGoogleSheetUtils v;
java.util.LinkedHashMap v;
int v;
org.apache.drill.exec.store.googlesheets.GoogleSheetsColumn v, v, v, v, v, v, v;
java.util.List v;
org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils$DATA_TYPES v, v, v, v, v, v, v;
v := @this: org.apache.drill.exec.store.googlesheets.TestGoogleSheetUtils;
v = new java.util.LinkedHashMap;
specialinvoke v.<java.util.LinkedHashMap: void <init>()>();
v = new org.apache.drill.exec.store.googlesheets.GoogleSheetsColumn;
v = <org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils$DATA_TYPES: org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils$DATA_TYPES UNKNOWN>;
specialinvoke v.<org.apache.drill.exec.store.googlesheets.GoogleSheetsColumn: void <init>(java.lang.String,org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils$DATA_TYPES,int,int)>("f1", v, 0, 0);
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>("f1", v);
v = new org.apache.drill.exec.store.googlesheets.GoogleSheetsColumn;
v = <org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils$DATA_TYPES: org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils$DATA_TYPES UNKNOWN>;
specialinvoke v.<org.apache.drill.exec.store.googlesheets.GoogleSheetsColumn: void <init>(java.lang.String,org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils$DATA_TYPES,int,int)>("f2", v, 2, 1);
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>("f2", v);
v = new org.apache.drill.exec.store.googlesheets.GoogleSheetsColumn;
v = <org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils$DATA_TYPES: org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils$DATA_TYPES UNKNOWN>;
specialinvoke v.<org.apache.drill.exec.store.googlesheets.GoogleSheetsColumn: void <init>(java.lang.String,org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils$DATA_TYPES,int,int)>("f3", v, 4, 2);
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>("f3", v);
v = new org.apache.drill.exec.store.googlesheets.GoogleSheetsColumn;
v = <org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils$DATA_TYPES: org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils$DATA_TYPES UNKNOWN>;
specialinvoke v.<org.apache.drill.exec.store.googlesheets.GoogleSheetsColumn: void <init>(java.lang.String,org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils$DATA_TYPES,int,int)>("f4", v, 6, 3);
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>("f4", v);
v = new org.apache.drill.exec.store.googlesheets.GoogleSheetsColumn;
v = <org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils$DATA_TYPES: org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils$DATA_TYPES UNKNOWN>;
specialinvoke v.<org.apache.drill.exec.store.googlesheets.GoogleSheetsColumn: void <init>(java.lang.String,org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils$DATA_TYPES,int,int)>("f6", v, 7, 4);
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>("f6", v);
v = new org.apache.drill.exec.store.googlesheets.GoogleSheetsColumn;
v = <org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils$DATA_TYPES: org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils$DATA_TYPES UNKNOWN>;
specialinvoke v.<org.apache.drill.exec.store.googlesheets.GoogleSheetsColumn: void <init>(java.lang.String,org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils$DATA_TYPES,int,int)>("f9", v, 8, 5);
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>("f9", v);
v = new org.apache.drill.exec.store.googlesheets.GoogleSheetsColumn;
v = <org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils$DATA_TYPES: org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils$DATA_TYPES UNKNOWN>;
specialinvoke v.<org.apache.drill.exec.store.googlesheets.GoogleSheetsColumn: void <init>(java.lang.String,org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils$DATA_TYPES,int,int)>("f10", v, 9, 6);
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>("f10", v);
v = staticinvoke <org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils: java.util.List getProjectedRanges(java.lang.String,java.util.Map)>("Sheet1", v);
v = interfaceinvoke v.<java.util.List: int size()>();
staticinvoke <org.junit.Assert: void assertEquals(long,long)>(4L, v);
return;
}
public void testColumnConversion()
{
java.lang.String v, v, v, v, v;
org.apache.drill.exec.store.googlesheets.TestGoogleSheetUtils v;
v := @this: org.apache.drill.exec.store.googlesheets.TestGoogleSheetUtils;
v = staticinvoke <org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils: java.lang.String columnToLetter(int)>(1);
staticinvoke <org.junit.Assert: void assertEquals(java.lang.Object,java.lang.Object)>("A", v);
v = staticinvoke <org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils: java.lang.String columnToLetter(int)>(2);
staticinvoke <org.junit.Assert: void assertEquals(java.lang.Object,java.lang.Object)>("B", v);
v = staticinvoke <org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils: java.lang.String columnToLetter(int)>(27);
staticinvoke <org.junit.Assert: void assertEquals(java.lang.Object,java.lang.Object)>("AA", v);
v = staticinvoke <org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils: java.lang.String columnToLetter(int)>(100);
staticinvoke <org.junit.Assert: void assertEquals(java.lang.Object,java.lang.Object)>("CV", v);
v = staticinvoke <org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils: java.lang.String columnToLetter(int)>(18200);
staticinvoke <org.junit.Assert: void assertEquals(java.lang.Object,java.lang.Object)>("ZWZ", v);
return;
}
public void testA1toIntResolution()
{
int v, v, v, v, v;
org.apache.drill.exec.store.googlesheets.TestGoogleSheetUtils v;
v := @this: org.apache.drill.exec.store.googlesheets.TestGoogleSheetUtils;
v = staticinvoke <org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils: int letterToColumnIndex(java.lang.String)>("A");
staticinvoke <org.junit.Assert: void assertEquals(long,long)>(1L, v);
v = staticinvoke <org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils: int letterToColumnIndex(java.lang.String)>("B");
staticinvoke <org.junit.Assert: void assertEquals(long,long)>(2L, v);
v = staticinvoke <org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils: int letterToColumnIndex(java.lang.String)>("AA");
staticinvoke <org.junit.Assert: void assertEquals(long,long)>(27L, v);
v = staticinvoke <org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils: int letterToColumnIndex(java.lang.String)>("CV");
staticinvoke <org.junit.Assert: void assertEquals(long,long)>(100L, v);
v = staticinvoke <org.apache.drill.exec.store.googlesheets.utils.GoogleSheetsUtils: int letterToColumnIndex(java.lang.String)>("ZWZ");
staticinvoke <org.junit.Assert: void assertEquals(long,long)>(18200L, v);
return;
}
}