Skip to content

Conversation

jyshekhar-git
Copy link

Modified code to fix bug to handle union.
original json file had something like:
queryId = query['query']['context']['queryId']
Modified the code to remove this and all instances of ['query']

@jyshekhar-git
Copy link
Author

Reason for the change is because the ['query'] in the code was throwing an error of the type:
dataSource = "'" + query['query']['dataSource']['dataSources'][0]['name'] + "|" + query['query']['dataSource']['dataSources'][1]['name'] + "'"
~~~~~^^^^^^^^^
KeyError: 'query'

Also added code for groupBy

@imply-khoondert
Copy link
Collaborator

Hi @jyshekhar-git - thanks for the PR - I don't think we want to keep changing the code each time a customer has a different log format... I think it might be better if we make it an option?
This way we use the Imply default way as the default position of the query, but if the query is in a different position we could add a parameter to the command line to say what field the query is

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

Successfully merging this pull request may close these issues.

2 participants