Skip to content

Commit

Permalink
feat(query): fix printing of values in resolve value - #1107
Browse files Browse the repository at this point in the history
  • Loading branch information
gigalasr committed Jan 28, 2025
1 parent da5f680 commit e5e412e
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import type { SlicingCriteria } from '../../../slicing/criterion/parse';
import type { QueryResults, SupportedQuery } from '../../query';
import { bold } from '../../../util/ansi';
import { printAsMs } from '../../../util/time';
import Joi, { object } from 'joi';
import Joi from 'joi';

import { executeResolveValueQuery } from './resolve-value-query-executor';
import { number2ts, RNumberValue, RStringValue } from '../../../r-bridge/lang-4.x/convert-values';
import type { RNumberValue, RStringValue } from '../../../r-bridge/lang-4.x/convert-values';


export interface ResolveValueQuery extends BaseQueryFormat {
Expand All @@ -26,12 +26,12 @@ function rValueToAscii(value: string | RNumberValue | RStringValue): string {
} else if(typeof value === 'string') {
return value;
} else if(typeof value === 'object') {
if("num" in value) {
if('num' in value) {
return value.num.toString();
} else if ("str" in value) {
} else if('str' in value) {
return `${value.quotes}${value.str}${value.quotes}`;
} else {
console.warn("omega lul")
console.warn('omega lul');
return JSON.stringify(value);
}
}
Expand Down

0 comments on commit e5e412e

Please sign in to comment.