Die folgende:ROUND zweites Argument nimmt nur konstant + hive
hive> create table t1 (val double, digit int);
hive> insert into t1 values(10,2);
hive> insert into t1 values(156660,3);
hive> insert into t1 values(8765450,4);
hive> select round(val, digit) from round_test;
gibt diesen Fehler:
FAILED: SemanticException [Error 10014]: Line 1:7 Wrong arguments 'digit': ROUND second argument only takes constant
Seine Arbeit in Impalas in Ordnung.
Könnte jemand mir helfen, bitte darauf hinweisen, woher der Fehler kommt?
Bitte fügen Sie eine Textbeschreibung hinzu. – wonko79
Möchten Sie den Wert für val, digit abrunden? auch was ist round_test tabelle? Sie haben Werte in Tabelle t1 hinzugefügt. – AMITAVA