Forum,

I have implemented a custom SQL Function.  However, It does NOT work in
Apache Zeppelin.
Here is screenshot of the error.

Is this the proper syntax when calling a SQL function in Apache Zeppelin?

<http://apache-ignite-users.70518.x6.nabble.com/file/t4/Zeppelin.png> 

NOTE: I have successfully executed other queries in Zeppelin against the
same cache.


When I attempt the same function call (ie: GETDATA() ) from within the
Ignite Web Console (https://console.gridgain.com/), function executes
successfully.


<http://apache-ignite-users.70518.x6.nabble.com/file/t4/Gridgain_Console.png> 

   :

Please advise. The following is a code snippet of details of function
getData():
I do not believe anything is wrong with my function as it works correctly in 
Ignite Web Console:

Code Snippet:

  :
  @QuerySqlFunction
    public static SimpleResultSet getData() {
         SimpleResultSet rs2 = new SimpleResultSet();
           
     int columnCount = 3;
          
     rs2.addColumn("LastName", Types.VARCHAR, 0, 0);
     rs2.addColumn("FirstName", Types.VARCHAR, 0, 0);
     rs2.addColumn("SocialSecurity", Types.VARCHAR, 0, 0);

     Object[] row = new Object[columnCount];
     row[0]= "Campbell";
     row[1]= "Turik";
     row[2]= "44444444444";
     
     rs2.addRow(row);
     
     return rs2;



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Reply via email to