Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-21685

Thin 3.0: executeColocated does not work with escaped table names

    XMLWordPrintableJSON

Details

    Description

      Add the following test to ItThinClientComputeTest:

          @Test
          void testExecuteColocatedEscapedTableName() {
              var session = client().sql().sessionBuilder().build();
              session.execute(null, "CREATE TABLE \"TBL ABC\" (key INT PRIMARY KEY, val INT)");
      
              var tableName = "\"TBL ABC\"";
              client().compute().executeColocated(tableName, Tuple.create().set("key", 1), List.of(), NodeNameJob.class.getName());
          }
      

      It fails:

      Caused by: java.lang.IllegalArgumentException: Fully qualified name is not expected [name=TBL ABC]
      	at org.apache.ignite.lang.util.IgniteNameUtils.parseSimpleName(IgniteNameUtils.java:49)
      	at org.apache.ignite.internal.table.distributed.TableManager.tableAsync(TableManager.java:1510)
      	at org.apache.ignite.client.handler.requests.table.ClientTableGetRequest.process(ClientTableGetRequest.java:45)
      	at org.apache.ignite.client.handler.ClientInboundMessageHandler.processOperation(ClientInboundMessageHandler.java:637)
      	at org.apache.ignite.client.handler.ClientInboundMessageHandler.processOperation(ClientInboundMessageHandler.java:569)
      

      Attachments

        Issue Links

          Activity

            People

              ptupitsyn Pavel Tupitsyn
              ptupitsyn Pavel Tupitsyn
              Igor Sapego Igor Sapego
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m