@@ -158,16 +158,16 @@ public void testTableWithSpecifiedWriteDataLocation()
158
158
{
159
159
String dataWriteLocation = Files .createTempDirectory ("test_table_with_specified_write_data_location2" ).toAbsolutePath ().toString ();
160
160
assertQueryFails (String .format ("create table test_table_with_specified_write_data_location2(a int, b varchar) with (write_data_path = '%s')" , dataWriteLocation ),
161
- "Not support set write_data_path on catalog: " + catalogType );
161
+ "Table property write_data_path is not supported with catalog type : " + catalogType );
162
162
}
163
163
164
164
@ Test
165
165
public void testPartitionedTableWithSpecifiedWriteDataLocation ()
166
166
throws IOException
167
167
{
168
- String dataWriteLocation = Files .createTempDirectory ("test_table_with_specified_write_data_location3 " ).toAbsolutePath ().toString ();
169
- assertQueryFails (String .format ("create table test_table_with_specified_write_data_location3 (a int, b varchar) with (write_data_path = '%s')" , dataWriteLocation ),
170
- "Not support set write_data_path on catalog: " + catalogType );
168
+ String dataWriteLocation = Files .createTempDirectory ("test_partitioned_table_with_specified_write_data_location " ).toAbsolutePath ().toString ();
169
+ assertQueryFails (String .format ("create table test_partitioned_table_with_specified_write_data_location (a int, b varchar) with (write_data_path = '%s', partitioning = ARRAY['a'] )" , dataWriteLocation ),
170
+ "Table property write_data_path is not supported with catalog type : " + catalogType );
171
171
}
172
172
173
173
@ Test
@@ -177,7 +177,7 @@ public void testShowCreateTableWithSpecifiedWriteDataLocation()
177
177
String tableName = "test_table_with_specified_write_data_location" ;
178
178
String dataWriteLocation = java .nio .file .Files .createTempDirectory ("test1" ).toAbsolutePath ().toString ();
179
179
assertQueryFails (format ("CREATE TABLE %s(a int, b varchar) with (write_data_path = '%s')" , tableName , dataWriteLocation ),
180
- "Not support set write_data_path on catalog: " + catalogType );
180
+ "Table property write_data_path is not supported with catalog type : " + catalogType );
181
181
}
182
182
183
183
@ Test
0 commit comments