Your Tasks

For this assignment, you will get acquainted with RookieDB's command line interface and make a small change to one file.

Task 1: Running the CLI

Open:

src/main/java/edu/berkeley/cs186/database/cli/CommandLineInterface

Run the CLI from IntelliJ and execute:

SELECT * FROM Courses LIMIT 5;

Then type exit to close the CLI.

Task 2: Welcome to CS186!

Open:

src/main/java/edu/berkeley/cs186/database/databox/StringDataBox.java

In toString(), follow the TODO and replace:

return "FIX ME";

with:

return s;

Then run:

src/test/java/edu/berkeley/cs186/database/databox/TestWelcome.java

If IntelliJ reports missing JUnit classpath, use its quick-fix to add JUnit.

Task 3: Debugging Exercise

Submit your answers to this Gradescope assignment:

https://www.gradescope.com/courses/1365054/assignments/8460826

Navigate to src/test/java/.../index/TestBPlusNode.java and practice debugger basics:

Question 1: What is the current size of leafKeys?

Question 2: What is the current size of rids?

You're done!

Continue to Submitting the Assignment.