I have one 'q' service running. I want to check whether current directory in the service is a partitioned directory or not. Is there any command to do that?
相关问题
- How to produce a formatted date string in Q/KDB?
- Rolling window in multi groups
- q - apply function on table rowwise
- How to ungroup list columns in data.table?
- How to join strings in a table in kdb?
相关文章
- How to ungroup list columns in data.table?
- 从在KDB字符串中提取数(extract number from string in kdb)
- 如何总结从单个记录的多个元素(How to sum multiple elements from s
- How to join strings in a table in kdb?
- Iterate over current row values in kdb query
- KDB+ / Q Syntax optimizations to oneliners
- select column from a table based on a variable nam
- soft deleting a column from a table in q
https://code.kx.com/q/ref/dotq/#qpf-partition-type or one of the other .Q's should do it for you (https://code.kx.com/q/ref/card/#q). Though KX don't necessarily recommend using .Q utilities.
Another way would be to check for the existence of the variable "date" (if date-partitioned), which lists the available partitioned dates. Assuming there hasn't been a random unrelated global "date" variable created in the process.
You can check if
par.txt
exists in db root (current working directory usually) - this may be a better alternative to relying on something internal within.Q
namespace, which is subject to change (although Kx rarely makes breaking changes to it).So for a partitioned HDB, you'd get the following: