Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

254
Views
Error de compilación de JavaScript: error de sintaxis no detectado: expresión del lado izquierdo no válida en la operación de prefijo en SP_PROCEDURE

Estoy escribiendo un procedimiento simple basado en JavaScript en Snowflake y obtengo un error extraño

Mientras llamo a este procedimiento, recibo el siguiente error,

Error de compilación de JavaScript: error de sintaxis no detectado: expresión del lado izquierdo no válida en la operación de prefijo en SP_PROCEDURE en ' var ret=Delete();

 CREATE OR REPLACE PROCEDURE "SP_PROCEDURE"() RETURNS VARCHAR(16777216) LANGUAGE JAVASCRIPT STRICT AS $$ function Delete() { var DeleteRepositoryTable=`DELETE FROM "TABLEA"`; try{ snowflake.execute({sqlText:DeleteRepositoryTable}); return "Success"; } catch(err) {return "Error Ocurred While Loading Data" + err; } } var ret=Delete(); ------------ return ret; $$
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Su procedimiento funciona bien para mí:

 CREATE OR REPLACE PROCEDURE "SP_PROCEDURE"() RETURNS VARCHAR(16777216) LANGUAGE JAVASCRIPT STRICT AS $$ function Delete() { var DeleteRepositoryTable=`DELETE FROM "CITIBIKE_TRIPS_TEMP"`; try{ snowflake.execute({sqlText:DeleteRepositoryTable}); return "Success"; } catch(err) { return "Error Ocurred While Loading Data" + err; } } var ret=Delete(); return ret; $$;

Cuando lo llamo:

 CALL "SP_PROCEDURE"();

Recupero el Éxito . ¿Cómo llamas al procedimiento?

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!