Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: No result to process #104

Closed
whitehander opened this issue Sep 11, 2018 · 3 comments
Closed

Error: No result to process #104

whitehander opened this issue Sep 11, 2018 · 3 comments
Assignees

Comments

@whitehander
Copy link

whitehander commented Sep 11, 2018

I caught error that error, when call con.query function

const MapdCon = require('mapd-connector')
const con = new MapdCon()
    .host('**IP**')
    .port(9092)
    .protocol('http')
    .dbName('**DBname**')
    .user('**userName**')
    .password('**pass**')
    .connect((err, con) => {
            if (err) console.log(err)
            con.getTablesAsync().then(res => console.log(res)) // <--- it is works properly
            con.query("SELECT * FROM table')", // <---- not working!
            (err, result) => {
                    if (err) console.log(err)
                    console.log(result)
            })
    })

/home/node_modules/mapd-connector/dist/node-connector.js:31524
        throw e; // re-throw the error to Rx
        ^

Error: No result to process
at /home/node_modules/mapd-connector/dist/node-connector.js:31857:18
at MapdCon.processResults (/home/node_modules/mapd-connector/dist/node-connector.js:30363:35)
at MapdCon.query [as queryAsync] (/home/node_modules/mapd-connector/dist/node-connector.js:30860:24)
at MapdCon.connector.(anonymous function) [as query] (/home/node_modules/mapd-connector/dist/node-connector.js:31516:25)
at MapdCon.host.port.protocol.dbName.user.password.connect (/home/index.js:12:21)
at /home/node_modules/mapd-connector/dist/node-connector.js:30469:12
at /home/node_modules/mapd-connector/dist/node-connector.js:1993:16
at process._tickCallback (internal/process/next_tick.js:61:11)
@jonvuri
Copy link
Contributor

jonvuri commented Sep 12, 2018

@whitehander Hi! It seems like there might be a syntax issue with your query - instead of "SELECT * FROM table')", it should probably be "SELECT * FROM table". Could you try that?

@whitehander
Copy link
Author

@jrajav Hi! Thanks for give opinion.
but That is my mistake when i masking my private codes.
still not solved that problem...

@jonvuri
Copy link
Contributor

jonvuri commented Oct 15, 2018

@whitehander Does the same query work if you try it through the mapdql utility that comes with mapd-core?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants