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 2 months 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
-
when I remove the statement you mentioned above. It looks like this and the 2.3 is still a fail. can you give any solution for this please? Is the type of the exch_message column is C or String? Mine one is showing the type of it as C.
-
This reply was modified 2 months ago by
Kal8na.
-
This reply was modified 2 months ago by
Log in to reply.