You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hop.apache.org by "usbrandon (via GitHub)" <gi...@apache.org> on 2023/09/01 11:48:18 UTC

[I] [Bug]: If you choose a date format mask when entering a value for the filter transform, your value will not be used for compare corrrectly. (hop)

usbrandon opened a new issue, #3200:
URL: https://github.com/apache/hop/issues/3200

   ### Apache Hop version?
   
   2.5-GA
   
   ### Java version?
   
   11
   
   ### Operating system
   
   Windows
   
   ### What happened?
   
   When you are setting up your Filter Transform and entering a value, if you say choose
   2023-02-01 00:00:00, and use the proper date mask matching that and Ok through it, you'll see a different date mask representation of the date value in the filter on the right side.   The filter will now fail to compare the right way giving you output like this:
   
   ![image](https://github.com/apache/hop/assets/1233654/284315f2-6e7d-4ff7-b7fd-1809ac64bcff)
   
   The step will work if you happen to enter your date values exactly as the default date mask suggests, then when you run the pipeline the filter will be applied correctly.
   
   The attached can reproduce the issue.
   [sample_filter.zip](https://github.com/apache/hop/files/12497535/sample_filter.zip)
   
   
   
   
   ### Issue Priority
   
   Priority: 3
   
   ### Issue Component
   
   Component: Transforms


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: If you choose a date format mask when entering a value for the filter transform, your value will not be used for compare corrrectly. (hop)

Posted by "usbrandon (via GitHub)" <gi...@apache.org>.
usbrandon closed issue #3200: [Bug]: If you choose a date format mask when entering a value for the filter transform, your value will not be used for compare corrrectly.
URL: https://github.com/apache/hop/issues/3200


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: If you choose a date format mask when entering a value for the filter transform, your value will not be used for compare corrrectly. (hop)

Posted by "mattcasters (via GitHub)" <gi...@apache.org>.
mattcasters commented on issue #3200:
URL: https://github.com/apache/hop/issues/3200#issuecomment-1811418981

   The mask is indeed saved and used but it is incorrect for the milliseconds specified.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: If you choose a date format mask when entering a value for the filter transform, your value will not be used for compare corrrectly. (hop)

Posted by "usbrandon (via GitHub)" <gi...@apache.org>.
usbrandon commented on issue #3200:
URL: https://github.com/apache/hop/issues/3200#issuecomment-2064742352

   Reproduction video
   
   https://www.youtube.com/watch?v=HeC9oQKygQU
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: If you choose a date format mask when entering a value for the filter transform, your value will not be used for compare corrrectly. (hop)

Posted by "adbrown101 (via GitHub)" <gi...@apache.org>.
adbrown101 commented on issue #3200:
URL: https://github.com/apache/hop/issues/3200#issuecomment-2025035438

   Same issue noted here:
   ```
   hop version 2.7.0 (2023-11-17 12.19.09)
   java.specification.version=11
   java.version=11.0.20
   java.vm.vendor=Microsoft
   ```
   Then if I go and try and edit the condition I get the following error.
   ```
   HopValueException: 
   constant String : couldn't convert string [2023/03/31 00:00:00.000] to a date using format [yyyy-MM-dd] on offset location 4
   2023/03/31 00:00:00.000
   
   Root cause: ParseException: 2023/03/31 00:00:00.000
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: If you choose a date format mask when entering a value for the filter transform, your value will not be used for compare corrrectly. (hop)

Posted by "sramazzina (via GitHub)" <gi...@apache.org>.
sramazzina commented on issue #3200:
URL: https://github.com/apache/hop/issues/3200#issuecomment-2063383122

   @usbrandon one of the dates' mask definition in your sample was wrong. That was the reason why the filter transform was raising an exception. Try my sample 
   [sample_filter1.zip](https://github.com/apache/hop/files/15022479/sample_filter1.zip)
   
   The only issue I foresee is related to code hardening by putting a check over the mask and see that is aligned to the expectations of the date you entered. I will move on that way for the moment as a fix for this transform. Let me know what you think. My sample works correctly and returns the row you are expecting
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: If you choose a date format mask when entering a value for the filter transform, your value will not be used for compare corrrectly. (hop)

Posted by "sramazzina (via GitHub)" <gi...@apache.org>.
sramazzina commented on issue #3200:
URL: https://github.com/apache/hop/issues/3200#issuecomment-2063396814

   @usbrandon about your message _"Remember, a key behavior is that if you were to put yyyy-MM-dd and a value like 2023-12-06, and then click Ok. When you go back into the filter step, it will forget your manually entered mask and try to put its own in there not matching it and permanently fail."_ tried this behaviour on latest snapshot 2.9.0-SNAPSHOT and 2.8.0 but I was unable to reproduce this issue. Can you help me by making clear about this?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: If you choose a date format mask when entering a value for the filter transform, your value will not be used for compare corrrectly. (hop)

Posted by "mattcasters (via GitHub)" <gi...@apache.org>.
mattcasters commented on issue #3200:
URL: https://github.com/apache/hop/issues/3200#issuecomment-1811425769

   TODO: Allow editing of the mask on previously entered values, despite the error thrown.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: If you choose a date format mask when entering a value for the filter transform, your value will not be used for compare corrrectly. (hop)

Posted by "usbrandon (via GitHub)" <gi...@apache.org>.
usbrandon commented on issue #3200:
URL: https://github.com/apache/hop/issues/3200#issuecomment-2064994307

   The only workaround currently is to format your dates as the transform demands with milliseconds at the end and according to your local java date format with slashes instead of dashes etc.  If you customize the date mask to match your stream in any way, then the transform hammers in its mask over what you had but records what you had, just doesn't use it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: If you choose a date format mask when entering a value for the filter transform, your value will not be used for compare corrrectly. (hop)

Posted by "usbrandon (via GitHub)" <gi...@apache.org>.
usbrandon closed issue #3200: [Bug]: If you choose a date format mask when entering a value for the filter transform, your value will not be used for compare corrrectly.
URL: https://github.com/apache/hop/issues/3200


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: If you choose a date format mask when entering a value for the filter transform, your value will not be used for compare corrrectly. (hop)

Posted by "sramazzina (via GitHub)" <gi...@apache.org>.
sramazzina commented on issue #3200:
URL: https://github.com/apache/hop/issues/3200#issuecomment-2063387984

   @adbrown101, as I was writing in my previous message, the date's format mask MUST be aligned to the format of the date you entered. Otherwise it cannot work.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: If you choose a date format mask when entering a value for the filter transform, your value will not be used for compare corrrectly. (hop)

Posted by "usbrandon (via GitHub)" <gi...@apache.org>.
usbrandon commented on issue #3200:
URL: https://github.com/apache/hop/issues/3200#issuecomment-1844041013

   Remember, a key behavior is that if you were to put yyyy-MM-dd and a value like 2023-12-06, and then click Ok.  When you go back into the filter step, it will forget your manually entered mask and try to put its own in there not matching it and permanently fail.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org