Last active
October 23, 2017 12:52
-
-
Save artembykov/5e0d4d46e8773a24896eaca541b67f1a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const queryConfig = { | |
filters: [], | |
groups: [{ | |
name: 'gender', | |
limit: 10, | |
sort: { dir: 'asc', name: 'gender' } | |
}], | |
metrics: [ | |
{ name: 'satisfaction', func: 'sum' } | |
] | |
}; | |
try { | |
const data = await fetchData(client, 'My IMPALA Source', queryConfig); | |
console.log('Received data:', data); | |
} finally { | |
client.close(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment