Maksim Zhuravkov created IGNITE-22873:
-----------------------------------------

             Summary: InvalidTypeException should not include a value into its 
error message.
                 Key: IGNITE-22873
                 URL: https://issues.apache.org/jira/browse/IGNITE-22873
             Project: Ignite
          Issue Type: Improvement
          Components: sql
            Reporter: Maksim Zhuravkov


1. Create a table (int, string).
2. Attempt to write a multi megabyte string. 
3. Error is not returned immediately. 

This happens because Column::validate includes a value that caused a validation 
error into a message.

Example:

{noformat}
  @Test
    public void test() {
        igniteSql().execute(null, "CREATE TABLE t (id INT PRIMARY KEY, data 
VARCHAR)").close();

        Table table = table("T");
        KeyValueView<Tuple, Tuple> kv = table.keyValueView();

        String s = "a".repeat(50*1024*1024);
        kv.put(null, Tuple.create().set("id", 1), Tuple.create().set("data", 
s));
    }
{noformat}







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

Reply via email to