Skip to Content

Universe repointed to Netezza Database is not working correctly

Hi All,

In the universe ,I need to convert the SYSDATE in Oracle Function to a similar function in Netezza.

When I try using now(), current_date or current_timestamp (netezza function), I got the message showed in the screenshot.

Kindly check the attached image and do the need full.

Thanks

Ram

Capture.PNG (47.7 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 19, 2016 at 04:22 PM

    The object SQL should simply be CURRENT_DATE

    It will not parse but it will work fine when you use it with other objects that are based on tables.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Ramanaidu Kolasani

      As I said yesterday, it won't parse. Just use it with table-based objects. The parser is expecting a table (e.g. SALES_FACT.SALES_VALUE) but system functions work differently and where no input is required, such as CURRENT_DATE, you won't parse them. Don't associate a table with it to get it parsed because then you'll include that table in every query, whether you need it or not and will potentially get wrong results.

  • Posted on Jul 19, 2016 at 10:55 AM

    Try this sql for netezza, if you only need the current date or if you are fetching it from any table use the table name instead of dual:

    Select date(Current_date) from dual

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.