Skip to content

Commit b437917

Browse files
feat: delete unused class
1 parent a0046c6 commit b437917

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

core/src/main/java/tech/ydb/core/impl/pool/EndpointPool.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public void pessimizeEndpoint(EndpointRecord endpoint) {
148148
long bestPriority = records.get(0).priority;
149149
int newBestCount = 0;
150150
int newPessimizedCount = 0;
151-
for (PriorityEndpoint record: records) {
151+
for (PriorityEndpoint record : records) {
152152
if (record.getPriority() == bestPriority) {
153153
newBestCount++;
154154
}

query/src/test/java/tech/ydb/query/ValueReadTest.java

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class ValueReadTest {
2727

2828
private final SessionRetryContext CTX = SessionRetryContext.create(QueryClient.newClient(ydbTransport).build()).build();
2929

30-
// @Test TODO
30+
@Test
3131
public void date32datetime64timestamp64interval64() {
3232
date32datetime64timestamp64interval64Assert(
3333
LocalDate.of(988, 2, 6),
@@ -45,11 +45,17 @@ public void date32datetime64timestamp64interval64() {
4545

4646

4747
QueryReader reader = CTX.supplyResult(
48-
s -> QueryReader.readFrom(s.createQuery("SELECT " +
49-
" Date32('998-06-02') AS c1,\n" +
50-
" Datetime64('0998-06-02T12:30:00Z') AS c2,\n" +
51-
" Timestamp64('0998-06-02T12:30:00.678901Z') AS c3,\n" +
52-
" Interval64('-PT2S') AS c4;", TxMode.NONE))
48+
s -> QueryReader.readFrom(s.createQuery("DECLARE $date32 AS Date32;\n" +
49+
"DECLARE $datetime64 AS Datetime64;\n" +
50+
"DECLARE $timestamp64 AS Timestamp64;\n" +
51+
"DECLARE $interval64 AS Interval64;\n" +
52+
"\n" +
53+
"$date32=Date32('998-06-02'); \n" +
54+
"$datetime64=Datetime64('0998-06-02T12:30:00Z');\n" +
55+
"$timestamp64=Timestamp64('0998-06-02T12:30:00.678901Z');\n" +
56+
"$interval64=Interval64('-PT2S');\n" +
57+
"\n" +
58+
"SELECT $date32, $datetime64, $timestamp64, $interval64;", TxMode.NONE))
5359
).join().getValue();
5460

5561
ResultSetReader resultSetReader = reader.getResultSet(0);
@@ -68,7 +74,7 @@ private void date32datetime64timestamp64interval64Assert(LocalDate date32, Local
6874
"DECLARE $date32 AS Date32;\n" +
6975
"DECLARE $datetime64 AS Datetime64;\n" +
7076
"DECLARE $timestamp64 AS Timestamp64;\n" +
71-
"DECLARE $interval64 AS Instant64;\n" +
77+
"DECLARE $interval64 AS Interval64;" +
7278
"SELECT $date32, $datetime64, $timestamp64, $interval64;",
7379
TxMode.SERIALIZABLE_RW,
7480
Params.of(

0 commit comments

Comments
 (0)