2021.10.01 03:42 AM
Hello Community,
I am helping a client who cannot query the HDB database after a schema update.
A new column ''source'' was added and now when they query the table, the following error that the directory cannot be found is generated:
./2021.07.23/bondsMarketDataDepth/source. OS reports: No such file or directory
What is the possible cause of the issue and how can this issue be resolved?
Looking forward to your feedback.
Kind regards,
Leah
2021.10.01 04:18 AM - edited 2021.10.01 04:25 AM
Hi Leah,
This error occurs as kdb expects the table to have the same columns across the different partitions being queried. The fixtable function from the dbmaint.q script should add the source column to the table in all partitions where it is missing and fix this issue.
https://github.com/KxSystems/kdb/blob/master/utils/dbmaint.md#fixtable
2021.10.01 04:18 AM - edited 2021.10.01 04:25 AM
Hi Leah,
This error occurs as kdb expects the table to have the same columns across the different partitions being queried. The fixtable function from the dbmaint.q script should add the source column to the table in all partitions where it is missing and fix this issue.
https://github.com/KxSystems/kdb/blob/master/utils/dbmaint.md#fixtable
2021.10.01 05:20 AM
Hi Shane,
That's exactly what I was looking for!
Thanks very much for sharing the documentation, appreciate the help. 😊
Have a great day,
Leah
EMEA
Tel: +44 (0)28 3025 2242
AMERICAS
Tel: +1 (212) 447 6700
APAC
Tel: +61 (0)2 9236 5700
KX. All Rights Reserved.
KX and kdb+ are registered trademarks of KX Systems, Inc., a subsidiary of FD Technologies plc.