使用orange3的模棱两可的列错误-POSTGRES

时间:2019-09-12 14:00:53

标签: postgresql orange

Orange 3中执行查询时,出现了模棱两可的列错误

查询

SELECT CAST(REPLACE(memoria_em_uso, 'G','') AS FLOAT),
       CAST(REPLACE(memoria_total, 'G','') as FLOAT), 
       CAST(REPLACE(memoria_livre, 'M','') as FLOAT) 
FROM tbl_memoria_hosts

输出

Error encountered in widget SQL Table:

Traceback (most recent call last):
  File "/home/luis/anaconda3/lib/python3.7/site-packages/Orange/data/sql/backend/postgres.py", line 81, in execute_sql_query
    cur.execute(query, params)
psycopg2.errors.AmbiguousColumn: column reference "replace" is ambiguous
LINHA 1: SELECT (("replace")::double precision) AS "replace", (("repl...

注意:

表中的所有列均为VARCHAR,其信息编写如下7.7G

0 个答案:

没有答案