Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added function to retrieve a map of column name and is_nullable as bo… #852

Merged
merged 24 commits into from
Oct 16, 2024
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
11ee428
Added function to retrieve a map of column name and is_nullable as bo…
subkanthi Oct 2, 2024
7d3d424
Added integration test for getColumnsIsNullableForTable
subkanthi Oct 2, 2024
781e80b
Fixed unit tests
subkanthi Oct 2, 2024
94e9233
Merge branch '2.4.0' of github.com:Altinity/clickhouse-sink-connector…
subkanthi Oct 3, 2024
65e0bad
Added integration test to validate GEOMETRY data type
subkanthi Oct 3, 2024
e4e0b59
Fixed integration test for GEOMETRY data type
subkanthi Oct 3, 2024
66aae4a
Added logic to use DBWriter in MySqlDDLParserListenerImpl and get Nul…
subkanthi Oct 6, 2024
b33e9cc
Merge branch '2.4.0' into 808-ddl-execution-drops-null-constraint
subkanthi Oct 8, 2024
b4e73be
Merge branch '2.4.0' of github.com:Altinity/clickhouse-sink-connector…
subkanthi Oct 9, 2024
4ea5e9b
Downgrade clickhouse-jdbc to 0.6.0
subkanthi Oct 9, 2024
d286c41
Fix unit tests
subkanthi Oct 9, 2024
0e101f3
Fixed unit tests
subkanthi Oct 9, 2024
944b885
Fixed unit test
subkanthi Oct 9, 2024
e3a35e4
fix alter test assertions
Oct 16, 2024
8d0876d
fix compound alter test assertions
Oct 16, 2024
2193e4b
Merge branch '2.4.0' of github.com:Altinity/clickhouse-sink-connector…
subkanthi Oct 16, 2024
727b4a0
Added logic to commit offsets for DDL
subkanthi Oct 16, 2024
551e4a9
Merge branch '808-ddl-execution-drops-null-constraint' of github.com:…
subkanthi Oct 16, 2024
a3c3610
Disabled RESTAPI tests
subkanthi Oct 16, 2024
3bc3597
add nulls where needed
Selfeer Oct 16, 2024
6954b3a
Merge remote-tracking branch 'origin/808-ddl-execution-drops-null-con…
Selfeer Oct 16, 2024
01aa642
final fix
Selfeer Oct 16, 2024
f2b63c5
Merge branch '2.4.0' into 808-ddl-execution-drops-null-constraint
subkanthi Oct 16, 2024
2405f5c
fixed missing imports
subkanthi Oct 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added integration test to validate GEOMETRY data type
  • Loading branch information
subkanthi committed Oct 3, 2024
commit 65e0bad8a705c2591918c87ccc2d41e88ed14b9c
Original file line number Diff line number Diff line change
@@ -287,8 +287,19 @@
Assert.assertTrue(c3b.equalsIgnoreCase("(3.0,4.0)"));
}
Assert.assertTrue(pointResultValidated);
String createTableWithGeometry = "CREATE TABLE employee.locations ( id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(100), location GEOMETRY)";
ITCommon.connectToMySQL(mySqlContainer).createStatement().execute(createTableWithGeometry);

Check failure on line 291 in sink-connector-lightweight/src/test/java/com/altinity/clickhouse/debezium/embedded/ddl/parser/CreateTableDataTypesIT.java

GitHub Actions / JUnit Test Report

CreateTableDataTypesIT.testCreateTable

Unknown database 'employee'
Raw output
java.sql.SQLSyntaxErrorException: Unknown database 'employee'
	at com.altinity.clickhouse.debezium.embedded.ddl.parser.CreateTableDataTypesIT.testCreateTable(CreateTableDataTypesIT.java:291)

// Sleep for 10 seconds to allow the table to be replicated
Thread.sleep(10000);

// Insert a new row into the table
ITCommon.connectToMySQL(mySqlContainer).createStatement().execute("INSERT INTO locations (name, location)\n" +
"VALUES ('Route', ST_GeomFromText('LINESTRING(0 0, 1 1, 2 2)'));\n");

Thread.sleep(10000);

// Validate GEOMETRY data type

Thread.sleep(5000);


Unchanged files with check annotations Beta

// query clickhouse connection and get data for test_table1 and test_table2
ResultSet rs = writer.executeQueryWithResultSet("SELECT * FROM test_db.test_table");

Check failure on line 133 in sink-connector-lightweight/src/test/java/com/altinity/clickhouse/debezium/embedded/ddl/parser/MultipleDatabaseIT.java

GitHub Actions / JUnit Test Report

MultipleDatabaseIT.testMultipleDatabases

Code: 81. DB::Exception: Database test_db does not exist. (UNKNOWN_DATABASE) (version 24.9.2.42 (official build)) , server ClickHouseNode [uri=http://localhost:32802/system, options={custom_settings=allow_experimental_object_type=1,insert_allow_materialized_columns=1,client_name=Client_1}]@-1854434933
Raw output
java.sql.BatchUpdateException: 
Code: 81. DB::Exception: Database test_db does not exist. (UNKNOWN_DATABASE) (version 24.9.2.42 (official build))
, server ClickHouseNode [uri=http://localhost:32802/system, options={custom_settings=allow_experimental_object_type=1,insert_allow_materialized_columns=1,client_name=Client_1}]@-1854434933
	at com.altinity.clickhouse.debezium.embedded.ddl.parser.MultipleDatabaseIT.testMultipleDatabases(MultipleDatabaseIT.java:133)
// Validate the data
boolean recordFound = false;
while(rs.next()) {