Member since
01-09-2019
8
Posts
0
Kudos Received
0
Solutions
01-27-2019
08:01 PM
SELECT DAYS_SUB(NOW(), DAYOFWEEK(NOW()) +1) AS last_friday; Thats what i needed. Thank you!!
... View more
01-23-2019
02:00 PM
Hi, how do i get last Friday in Impala? Thx
... View more
Labels:
- Labels:
-
Apache Impala
01-20-2019
09:11 AM
the while loop that works in microsoft SQL looks like cloudera does not support it ?
... View more
01-20-2019
09:07 AM
Hi EricL, This is the error i get: SQL Error [500051] [HY000]: [Simba][ImpalaJDBCDriver](500051) ERROR processing query/statement. Error Code: 0, SQL state: TStatus(statusCode:ERROR_STATUS, sqlState:HY000, errorMessage:AnalysisException: Syntax error in line 1: update anp_catdidai1_working.dim_bsp_date ^ Encountered: IDENTIFIER Expected: ALTER, COMPUTE, CREATE, DESCRIBE, DROP, EXPLAIN, GRANT, INSERT, INVALIDATE, LOAD, REFRESH, REVOKE, SELECT, SET, SHOW, TRUNCATE, USE, VALUES, WITH CAUSED BY: Exception: Syntax error ), Query: update anp_catdidai1_working.dim_bsp_date set day=day(date_num). [Simba][ImpalaJDBCDriver](500051) ERROR processing query/statement. Error Code: 0, SQL state: TStatus(statusCode:ERROR_STATUS, sqlState:HY000, errorMessage:AnalysisException: Syntax error in line 1: update anp_catdidai1_working.dim_bsp_date ^ Encountered: IDENTIFIER Expected: ALTER, COMPUTE, CREATE, DESCRIBE, DROP, EXPLAIN, GRANT, INSERT, INVALIDATE, LOAD, REFRESH, REVOKE, SELECT, SET, SHOW, TRUNCATE, USE, VALUES, WITH CAUSED BY: Exception: Syntax error ), Query: update anp_catdidai1_working.dim_bsp_date set day=day(date_num). com.cloudera.support.exceptions.GeneralException: [Simba][ImpalaJDBCDriver](500051) ERROR processing query/statement. Error Code: 0, SQL state: TStatus(statusCode:ERROR_STATUS, sqlState:HY000, errorMessage:AnalysisException: Syntax error in line 1: update anp_catdidai1_working.dim_bsp_date ^ Encountered: IDENTIFIER Expected: ALTER, COMPUTE, CREATE, DESCRIBE, DROP, EXPLAIN, GRANT, INSERT, INVALIDATE, LOAD, REFRESH, REVOKE, SELECT, SET, SHOW, TRUNCATE, USE, VALUES, WITH CAUSED BY: Exception: Syntax error ), Query: update anp_catdidai1_working.dim_bsp_date set day=day(date_num). I also tried with 'day' and same error
... View more
01-10-2019
08:45 PM
hello all, Trying to update a table where date_num is a date(timestamp) and "day" is the field i want to update but i am getting errors Anyhting wrong with the query below? update anp_catdidai1_working.dim_bsp_date set day=day(date_num)
... View more
Labels:
01-09-2019
06:49 PM
Hi, i am sorry if i am postiing this where it should not be posted.New to impala/hive , new to this community site but i need to populate an empty table of one field (date) with dates (from 1990-01-01 till 2099-12-31) and the "while" loop does not seem to be working here. Any suggestions,or links you guys can provide please? Thanks, Tom
... View more
Labels:
- Labels:
-
Apache Impala