SQL: Soften some more NOCOMMITs

Original commit: elastic/x-pack-elasticsearch@910e2485df
This commit is contained in:
Nik Everett 2017-09-21 11:33:30 -04:00
parent 8a05c1b81f
commit 71a33323ff
4 changed files with 7 additions and 7 deletions

View File

@ -52,9 +52,10 @@ public abstract class CliIntegrationTestCase extends ESRestTestCase {
static {
String addressAndPort = System.getProperty("tests.cli.fixture");
if (addressAndPort == null) {
throw new IllegalArgumentException("Must set the [tests.cli.fixture] property. This is required even in embedded "
+ "mode. The easiest way to run the fixture is with "
+ "`gradle :x-pack-elasticsearch:test:sql-cli-fixture:run` and to set the property to localhost:53798");
throw new IllegalArgumentException("Must set the [tests.cli.fixture] property. Gradle handles this for you "
+ " in regular tests. In embedded mode the easiest thing to do is run "
+ "`gradle :x-pack-elasticsearch:qa:sql:no-security:run` and to set the property to the contents of "
+ "`qa/sql/no-security/build/fixtures/cliFixture/ports`");
}
int split = addressAndPort.lastIndexOf(':');
try {

View File

@ -59,7 +59,7 @@ public abstract class DateTimeFunction extends UnaryScalarFunction implements Ti
@Override
protected ScriptTemplate asScriptFrom(FieldAttribute field) {
// NOCOMMIT I think we should investigate registering SQL as a script engine so we don't need to generate painless
// TODO I think we should investigate registering SQL as a script engine so we don't need to generate painless
return new ScriptTemplate(createTemplate(),
paramsBuilder()
.variable(field.name())
@ -76,7 +76,7 @@ public abstract class DateTimeFunction extends UnaryScalarFunction implements Ti
if (DateTimeZone.UTC.equals(timeZone)) {
return formatTemplate("doc[{}].value.get" + extractFunction() + "()");
} else {
// NOCOMMIT ewwww
// TODO ewwww
/* This uses the Java 8 time API because Painless doesn't whitelist creation of new
* Joda classes. */

View File

@ -37,7 +37,7 @@ public abstract class AbstractSqlServer {
}
protected final Response exceptionResponse(Request req, Exception e) {
// NOCOMMIT I wonder why we don't just teach the servers to handle ES's normal exception response.....
// NOCOMMIT I wonder why we don't just teach the clients to handle ES's normal exception response.....
SqlExceptionType exceptionType = sqlExceptionType(e);
String message = EMPTY;

View File

@ -166,7 +166,6 @@ public class SqlResponse extends ActionResponse implements ToXContentObject {
* Information about a column.
*/
public static final class ColumnInfo implements Writeable, ToXContentObject {
// NOCOMMIT: we probably need to add more info about columns, but that's all we use for now
private final String name;
private final String type;