Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,28 @@ public void testChar2HexIntUtf8()
.hasType(VARCHAR)
.isEqualTo("002830CE0CA076CA0CA0002930CE5F61253B2501253B");
}

@Test
public void testToDate()
{
assertThat(assertions.function("to_date", "'1988/04/01'", "'yyyy/mm/dd'"))
.matches("DATE '1988-04-01'");
assertThat(assertions.function("to_date", "'1988/04/08'", "'yyyy/mm/dd'"))
.matches("DATE '1988-04-08'");
}

@Test
public void testToTimestamp()
{
assertThat(assertions.function("to_timestamp", "'1988/04/08;02:03:04'", "'yyyy/mm/dd;hh24:mi:ss'"))
.matches("TIMESTAMP '1988-04-08 02:03:04.000'");
}

@Test
public void testToChar()
{
assertThat(assertions.function("to_char", "TIMESTAMP '1988-04-08 14:15:16 +02:09'", "'yyyy/mm/dd;hh24:mi:ss'"))
.hasType(VARCHAR)
.isEqualTo("1988/04/08;14:15:16");
}
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ public final class TestGroups
public static final String ALTER_TABLE = "alter_table";
public static final String COMMENT = "comment";
public static final String SIMPLE = "simple";
public static final String FUNCTIONS = "functions";
public static final String CLI = "cli";
public static final String SYSTEM_CONNECTOR = "system";
public static final String CONFIGURED_FEATURES = "configured_features";
Expand All @@ -33,10 +32,6 @@ public final class TestGroups
public static final String OAUTH2_REFRESH = "oauth2_refresh";
public static final String MYSQL = "mysql";
public static final String TRINO_JDBC = "trino_jdbc";
public static final String QUERY_ENGINE = "qe";
public static final String COMPARISON = "comparison";
public static final String LOGICAL = "logical";
public static final String JSON_FUNCTIONS = "json_functions";
public static final String STORAGE_FORMATS = "storage_formats";
public static final String STORAGE_FORMATS_DETAILED = "storage_formats_detailed";
public static final String HMS_ONLY = "hms_only";
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.