Giter VIP home page Giter VIP logo

Comments (16)

javadch avatar javadch commented on June 27, 2024
  1. when it worked on other branches, how is it possible to not work here?
  2. On my machine:
    1. the extdata should have a tailing forward slash -> extdata/
    2. it complained about using 'b' in the BIND statement in the test.R. I changed it to b2 and it works!
  3. As a clue: in the rqt.getEngine() code, there is a call to this: getEngineReturnValue <- .jnew("xqt/api/LanguageServicePoint", "RQt, RQt/inst, inst")
    which means, the LanguageServicePoint function accepts the candidate locations for the config file. with these feature you have thee options,
    1. make a string containing "RQt, RQt/inst, inst" + find.package("RQt") and pass it to the aboved mentioned function.
    2. create a copy of rqt.getEngine(), names it like rqt.getEngine2(path) accepts the path you want, and pass it to the .jenw(.. instead of "RQt, RQt/inst, inst"
    3. pass find.package("RQt") result to the ,.jnew "RQt, RQt/inst, inst", without creating another function
      By the way, I do not think that the problem is with the path,...

from rquis.

ClaytonJY avatar ClaytonJY commented on June 27, 2024
  1. RQt has never worked for me on any branch, so I don't know; we just got the Java issues worked out on Monday, after all.
  2. On my machine,
    1. having the extra "" in file.path is to ensure dir ends with a slash; is that not the case on your machine (try running just that line to see the output)? Really, XQt should not be so picky, and assume that SOURCE_URI is a directory regardless of trailing slash.
    2. I get no complaint about b, unless it's somehow being masked. Why would that matter, is b a reserved keyword?
  3. Those are definitely the wrong things to be passing to getEngine as inst/ does not exist, and RQt cannot be assumed to be in the current directory. I also think getEngine should be validating this input rather than waiting for a run-time XQt error.
    I say the problem is with the path because it's clearly looking in the wrong path; there is no expectation that /home/cyochum/config/ exists.
    (iii) seems like the only workable option to me, but I have no time to implement and test it.

from rquis.

javadch avatar javadch commented on June 27, 2024

The matter is that the source_uri is not always a folder. It can be a file
or a url too. I would go to make it smarter by the way.

Just proceed with what is workable and we decide what to do after my
presentation.
On Aug 27, 2015 10:41 AM, "Clayton" [email protected] wrote:

  1. RQt has never worked for me on any branch, so I don't know; we just
    got the Java issues worked out on Monday, after all.
  2. On my machine, having the extra "" in file.path is to ensure dir
    ends with a slash; is that not the case on your machine (try running just
    that line to see the output)? Really, XQt should not be so picky, and
    assume that SOURCE_URI is a directory regardless of trailing slash.
  3. Those are definitely the wrong things to be passing to getEngine as
    inst/ does not exist, and RQt cannot be assumed to be in the current
    directory. I also think getEngine should be validating this input rather
    than waiting for a run-time XQt error. I say the problem is with the path
    because it's clearly looking in the wrong path; there is no expectation
    that /home/cyochum/config/ exists. (iii) seems like the only workable
    option to me, but I have no time to implement and test it.


Reply to this email directly or view it on GitHub
#30 (comment).

from rquis.

ClaytonJY avatar ClaytonJY commented on June 27, 2024

I have a full schedule this evening, so I can't help; you'll have to do what you can to get it ready for the morning.

from rquis.

javadch avatar javadch commented on June 27, 2024

The result of the find.package() can be passed to the .jnew call inside the getEngine function to replace the literal strings there

from rquis.

ClaytonJY avatar ClaytonJY commented on June 27, 2024

So in looking at this again, I also get a complaint about b; changing to b1 fixes that. Now I get a new error:

> rqt.runProcess(engine)
Note: /Stmt_1_Reader.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
[1] "**************************************************************************************\n****************************** Statement Execution Results ********************************\n**************************************************************************************\nStatement 1 was executed. Its result is in the variable: 'var3' and contains 5 records.\n"

Not only is there no var3 in my environment, such a side-effect is not what I would expect; I think rqt.runProcess should return the result of running the process.

Any idea what's going on here @javadch?

from rquis.

ClaytonJY avatar ClaytonJY commented on June 27, 2024

Oddly, I get that error whether or not I fix what's being passed to .jnew inside of rqt.getEngine, which was not the case last week. It's like that path doesn't matter anymore? Not sure how it's finding the adapter it couldn't find before.

from rquis.

javadch avatar javadch commented on June 27, 2024

It is indeed not an error. Its a compilation switch i have to set at the query translation time to suppress the message.
Results are kept in variables because processes are allowed to have multiple statements.

from rquis.

javadch avatar javadch commented on June 27, 2024

Let me check it tmrw. Curently waiting for my flight from LAX to Detroit

from rquis.

ClaytonJY avatar ClaytonJY commented on June 27, 2024

Okay so that makes sense, but all statements in a process are always run together, correct? Seems like a better behavior would be to return a list() of the results if there's more than one.

from rquis.

javadch avatar javadch commented on June 27, 2024

The b and b1 is weird i have to debug the grammar to see what is going on.

from rquis.

javadch avatar javadch commented on June 27, 2024

It takes time to convert all, while in many cases not all of them are needed e.g., intermediate results. I suggest to have a function to return only the names of the variables of a process, so that users know what is available to ask for its actual data.

from rquis.

ClaytonJY avatar ClaytonJY commented on June 27, 2024

Is it not possible to specify in the grammar that not all statements need to return their results when the process is finished? It seems odd to make users go through an extra step of fetching their results from Java.

from rquis.

javadch avatar javadch commented on June 27, 2024

lets fix the blocking issues first, then we can come back to discuss these enhancements. The R's DBI works in the same way, but for single statements. set connection, impose query, execute query and fetch result.

from rquis.

javadch avatar javadch commented on June 27, 2024

I made some minor changes in the test.R and also in the getEngine function. The jar changes are just to be sure everything is up to date (the changes may not be relevant to this issue). Using this version the test demo runs for me. if it still fails on your machine, please:

  • delete the log folder
  • load and built the package
  • run the demo
  • send me the log file
  • send me the location of the installed package

from rquis.

javadch avatar javadch commented on June 27, 2024

Tested and passed on both Windows and Linux. Used the latest develop version as of today Sept. 15

from rquis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.