You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please note first row is getting skipped.
Database : MySQL
Tablesaw dependency :
tech.tablesaw
tablesaw-core
0.42.0
Line of code : System.out.println(Table.read().db(resultSet).printAll());
Result Obtained :
id | description | title |
6670 | This is a complete JavaScript Expert course. | JavaScript Expert |
6671 | This is a complete Java Expert course. | Java Expert |
6679 | This is a complete Java DSA Expert course. | Java DSA Expert |
9990 | This is a complete JavaScript Basics course. | JavaScript Basics |
Actual Data in DB :
mysql> select * from demo_api.course;
+------+----------------------------------------------+-------------------+
| id | description | title |
+------+----------------------------------------------+-------------------+
| 2334 | This is a complete CPP DSA course. | CPP DSA |
| 6670 | This is a complete JavaScript Expert course. | JavaScript Expert |
| 6671 | This is a complete Java Expert course. | Java Expert |
| 6679 | This is a complete Java DSA Expert course. | Java DSA Expert |
| 9990 | This is a complete JavaScript Basics course. | JavaScript Basics |
+------+----------------------------------------------+-------------------+
The text was updated successfully, but these errors were encountered:
Did you directly examine the data in the java sql ResultSet to see if it was correct? Tablesaw doesn't actually import from a database, it imports from a JDBC ResultSet object.
There are a number of tests that show that given a resultSet with n records, Tablesaw produces a table with n rows.
Please note first row is getting skipped.
Database : MySQL
Tablesaw dependency :
tech.tablesaw
tablesaw-core
0.42.0
Line of code : System.out.println(Table.read().db(resultSet).printAll());
Result Obtained :
id | description | title |
6670 | This is a complete JavaScript Expert course. | JavaScript Expert |
6671 | This is a complete Java Expert course. | Java Expert |
6679 | This is a complete Java DSA Expert course. | Java DSA Expert |
9990 | This is a complete JavaScript Basics course. | JavaScript Basics |
Actual Data in DB :
mysql> select * from demo_api.course;
+------+----------------------------------------------+-------------------+
| id | description | title |
+------+----------------------------------------------+-------------------+
| 2334 | This is a complete CPP DSA course. | CPP DSA |
| 6670 | This is a complete JavaScript Expert course. | JavaScript Expert |
| 6671 | This is a complete Java Expert course. | Java Expert |
| 6679 | This is a complete Java DSA Expert course. | Java DSA Expert |
| 9990 | This is a complete JavaScript Basics course. | JavaScript Basics |
+------+----------------------------------------------+-------------------+
The text was updated successfully, but these errors were encountered: