Maksim Zhuravkov created IGNITE-24153:
-----------------------------------------

             Summary: Sql. Dml. It is not possible to insert a varchar string 
that is longer than 65536 characters
                 Key: IGNITE-24153
                 URL: https://issues.apache.org/jira/browse/IGNITE-24153
             Project: Ignite
          Issue Type: Bug
          Components: sql
            Reporter: Maksim Zhuravkov


it is possible to create a table with that has a VARCHAR column with length 
that is larger than 65536 but inserting strings that longer than 65536 
characters results in an error on write "Value too long for type: 
VARCHAR(65536)":

{code:java}
 @Test
    public void test() {
        sql("CREATE TABLE t(id INT PRIMARY KEY, val VARCHAR(2000000))");

        String s = "1".repeat(1024*1024*2);
        sql("INSERT INTO t VALUES(1, ?)", s);
    }
{code}






--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to