{"action":"created","issue":{"url":"https://api.github.com/repos/database-rider/database-rider/issues/148","repository_url":"https://api.github.com/repos/database-rider/database-rider","labels_url":"https://api.github.com/repos/database-rider/database-rider/issues/148/labels{/name}","comments_url":"https://api.github.com/repos/database-rider/database-rider/issues/148/comments","events_url":"https://api.github.com/repos/database-rider/database-rider/issues/148/events","html_url":"https://github.com/database-rider/database-rider/issues/148","id":477529332,"node_id":"MDU6SXNzdWU0Nzc1MjkzMzI=","number":148,"title":"Unable to execute javascript function in yml","user":{"login":"achyutha526","id":19805368,"node_id":"MDQ6VXNlcjE5ODA1MzY4","avatar_url":"https://avatars3.githubusercontent.com/u/19805368?v=4","gravatar_id":"","url":"https://api.github.com/users/achyutha526","html_url":"https://github.com/achyutha526","followers_url":"https://api.github.com/users/achyutha526/followers","following_url":"https://api.github.com/users/achyutha526/following{/other_user}","gists_url":"https://api.github.com/users/achyutha526/gists{/gist_id}","starred_url":"https://api.github.com/users/achyutha526/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/achyutha526/subscriptions","organizations_url":"https://api.github.com/users/achyutha526/orgs","repos_url":"https://api.github.com/users/achyutha526/repos","events_url":"https://api.github.com/users/achyutha526/events{/privacy}","received_events_url":"https://api.github.com/users/achyutha526/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-08-06T18:27:17Z","updated_at":"2019-08-06T19:51:21Z","closed_at":null,"author_association":"NONE","body":"I am trying to load data to DB using YAML file and Spring JDBC. In YAML file, i need to format the date, so have stated creating java script function and trying to invoke it.\r\n\r\nField in YAML:\r\n\r\nCRT_TMSTMP: \"js:import formatDate from './calculateDate.js'; formatDate('2018-12-1');\"\r\n\r\nContents of Javascript file:\r\n---------------------------------\r\nfunction formatDate(dateInput){\r\n  XXXXXXXX\r\n  XXXXXXXX\r\n  return date.toLocaleDateString();\r\n}\r\nexport {formatDate};\r\n\r\nI am seeing error:\r\n Unable to typecast value <js:import formatDate from './calculateDate.js'; formatDate('2018-12-1');> of type <java.lang.String> to TIMESTAMP\r\n\tat org.dbunit.dataset.datatype.TimestampDataType.typeCast(TimestampDataType.java:120)"},"comment":{"url":"https://api.github.com/repos/database-rider/database-rider/issues/comments/518817956","html_url":"https://github.com/database-rider/database-rider/issues/148#issuecomment-518817956","issue_url":"https://api.github.com/repos/database-rider/database-rider/issues/148","id":518817956,"node_id":"MDEyOklzc3VlQ29tbWVudDUxODgxNzk1Ng==","user":{"login":"rmpestano","id":1592273,"node_id":"MDQ6VXNlcjE1OTIyNzM=","avatar_url":"https://avatars0.githubusercontent.com/u/1592273?v=4","gravatar_id":"","url":"https://api.github.com/users/rmpestano","html_url":"https://github.com/rmpestano","followers_url":"https://api.github.com/users/rmpestano/followers","following_url":"https://api.github.com/users/rmpestano/following{/other_user}","gists_url":"https://api.github.com/users/rmpestano/gists{/gist_id}","starred_url":"https://api.github.com/users/rmpestano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmpestano/subscriptions","organizations_url":"https://api.github.com/users/rmpestano/orgs","repos_url":"https://api.github.com/users/rmpestano/repos","events_url":"https://api.github.com/users/rmpestano/events{/privacy}","received_events_url":"https://api.github.com/users/rmpestano/received_events","type":"User","site_admin":false},"created_at":"2019-08-06T19:51:21Z","updated_at":"2019-08-06T19:51:21Z","author_association":"MEMBER","body":"Hi, you can't import a file inside an yaml dataset. \r\n\r\nQhat you're trying to achieve?"}}
{"actor":{"display_login":"rmpestano"}}