public class TestScalars extends BaseJsonLoaderTest
In either case, all scalars perform conversion from all other scalars. If data is clean, then the conversion will never be used. If the data is messy, then the result, when combined with a schema, produces a repeatable (if perhaps still messy) result. The goal is that, with a schema, the query should not fail due to a few messy rows a billion rows in, or due to the order that the scanners see the data.
BaseJsonLoaderTest.JsonLoaderFixtureDrillTest.MemWatcherdirTestWatcher, fixturelogOutcome, objectMapper, REPEAT_RULE, thrownException, TIMEOUT| Constructor and Description |
|---|
TestScalars() |
| Modifier and Type | Method and Description |
|---|---|
void |
testAllTextBoolean() |
void |
testAllTextFloat() |
void |
testAllTextInt() |
void |
testAllTextString() |
void |
testBoolean()
Test Boolean type using type inference to guess the type from the
first row of data.
|
void |
testBooleanWithSchema()
Test Boolean with a provided schema which states the column type
independent of the first value.
|
void |
testFloat() |
void |
testFloatWithError() |
void |
testFloatWithSchema() |
void |
testInt() |
void |
testIntAsDouble() |
void |
testIntWithError()
There are limits on Drill's generosity.
|
void |
testIntWithSchema() |
void |
testProvidedSchemaNumbers() |
void |
testProvidedSchemaWithBinary() |
void |
testProvidedSchemaWithDates() |
void |
testProvidedSchemaWithIntervals() |
void |
testString() |
void |
testStringWithSchema() |
classSetup, classTeardownescapeJsonString, finishDrillTest, initDrillTestpublic void testBoolean()
public void testAllTextBoolean()
public void testBooleanWithSchema()
public void testInt()
public void testIntAsDouble()
public void testAllTextInt()
public void testIntWithSchema()
public void testIntWithError()
public void testFloat()
public void testAllTextFloat()
public void testFloatWithSchema()
public void testFloatWithError()
public void testString()
public void testAllTextString()
public void testStringWithSchema()
public void testProvidedSchemaNumbers()
public void testProvidedSchemaWithDates()
public void testProvidedSchemaWithIntervals()
public void testProvidedSchemaWithBinary()
Copyright © 2021 The Apache Software Foundation. All rights reserved.