Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Added "datetime_format" URL parameter to handle jdbc date and time fo…
Browse files Browse the repository at this point in the history
…rmatting with new engine
  • Loading branch information
cip999 committed Aug 22, 2021
1 parent 8fb065c commit 8c99a03
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package com.amazon.opendistroforelasticsearch.sql.protocol.response.format;

import static com.amazon.opendistroforelasticsearch.sql.data.model.ExprTimestampValue.ALWAYS_INCLUDE_TIME;
import static com.amazon.opendistroforelasticsearch.sql.data.model.ExprValueUtils.LITERAL_MISSING;
import static com.amazon.opendistroforelasticsearch.sql.data.model.ExprValueUtils.LITERAL_NULL;
import static com.amazon.opendistroforelasticsearch.sql.data.model.ExprValueUtils.stringValue;
Expand All @@ -24,7 +25,6 @@
import static com.amazon.opendistroforelasticsearch.sql.data.type.ExprCoreType.INTEGER;
import static com.amazon.opendistroforelasticsearch.sql.data.type.ExprCoreType.STRING;
import static com.amazon.opendistroforelasticsearch.sql.data.type.ExprCoreType.STRUCT;
import static com.amazon.opendistroforelasticsearch.sql.data.model.ExprTimestampValue.ALWAYS_INCLUDE_TIME;
import static com.amazon.opendistroforelasticsearch.sql.elasticsearch.data.type.ElasticsearchDataType.ES_TEXT;
import static com.amazon.opendistroforelasticsearch.sql.elasticsearch.data.type.ElasticsearchDataType.ES_TEXT_KEYWORD;
import static com.amazon.opendistroforelasticsearch.sql.executor.ExecutionEngine.Schema;
Expand All @@ -48,7 +48,8 @@
@DisplayNameGeneration(DisplayNameGenerator.ReplaceUnderscores.class)
class JdbcResponseFormatterTest {

private final JdbcResponseFormatter formatter = new JdbcResponseFormatter(COMPACT, ALWAYS_INCLUDE_TIME);
private final JdbcResponseFormatter formatter = new JdbcResponseFormatter(COMPACT,
ALWAYS_INCLUDE_TIME);

@Test
void format_response() {
Expand Down

0 comments on commit 8c99a03

Please sign in to comment.