Fix Vtexplains StripComments#5984
Conversation
|
Issue related #5981 |
|
Thanks @harshit-gangal. Updated the PR description |
Signed-off-by: Saif Alharthi <saif@saifalharthi.me> Modify for better readability Signed-off-by: Saif Alharthi <saif@saifalharthi.me> Make sure anything inside qoutations will not be removed Signed-off-by: Saif Alharthi <saif@saifalharthi.me> Modity test for readablity Signed-off-by: Saif Alharthi <saif@saifalharthi.me>
ba91c1f to
1ddeee0
Compare
|
I tried below case and got this |
Signed-off-by: Saif Alharthi <saif@saifalharthi.me>
|
@harshit-gangal Yes, your expectation is correct. I changed the code so it can use the parser. And the previous code if it is not. I am not sure if we should change the tests to display an error the string cannot be parsed. But this seems like a good compromise. |
|
Let's switch this function to use splitMarginComments and also fix the current issues with that function. |
…rately Signed-off-by: Andres Taylor <andres@planetscale.com>
Signed-off-by: Saif Alharthi <saif@saifalharthi.me>
|
I discussed with @sougou about this issue and decided to remove PARTITION so vtexplain can match vitess's current behavior. |
Closes #5981
Signed-off-by: Saif Alharthi saif@saifalharthi.me