Home › Forums › KX Academy › fundamentals capstone 2.3
-
fundamentals capstone 2.3
Posted by Kal8na on April 9, 2024 at 4:39 amI have an issue when updating the message table. can you please tell me why?
messages: update brokerId: extractBrokerId each exch_message from messages
Kal8na replied 7 months, 1 week ago 2 Members · 9 Replies -
9 Replies
-
Hi @Kal8na
I believe the error lies in how you imported your messages.csv. It states in the question that “The exch_message column should be read in as a string”.
To do this in q we use the ( * ) character. So to adjust your import, change “SJF” to “**”.
Let me know if this works!
Thanks,
Megan
-
-
Hi @kal8na
Since you have adjusted your code to use ‘ * ‘ to read in your columns as strings, you no longed need the following cast statement:
messages: update trade_id: `$string trade_id from messages
As this is changes the format of the column from image_1 to image_2.
Let me know if this helps!
Thanks,
Megan
-
Log in to reply.