mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-11 12:07:42 +00:00
(improvement)(headless)Add timeFormat to dimension metadata of the Text2SQL prompt.
(improvement)(headless)Add `timeFormat` to dimension metadata of the Text2SQL prompt. #1621.
This commit is contained in:
@@ -114,6 +114,9 @@ public class PromptHelper {
|
||||
dimension.getAlias().stream().forEach(a -> alias.append(a + ","));
|
||||
dimensionStr.append(" ALIAS '" + alias + "'");
|
||||
}
|
||||
if (StringUtils.isNotEmpty(dimension.getTimeFormat())) {
|
||||
dimensionStr.append(" FORMAT '" + dimension.getTimeFormat() + "'");
|
||||
}
|
||||
if (StringUtils.isNotEmpty(dimension.getDescription())) {
|
||||
dimensionStr.append(
|
||||
" COMMENT '" + dimension.getDescription() + "'");
|
||||
|
||||
Reference in New Issue
Block a user