wangbowen1024 opened a new issue #7732:
URL: https://github.com/apache/dolphinscheduler/issues/7732


   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What happened
   
   
![image](https://user-images.githubusercontent.com/48642743/147733959-8cf0cdb9-5551-4836-ab90-80a16c3e1b41.png)
   
   create directory error logs:
   ```
   ### Error updating database.  Cause: org.postgresql.util.PSQLException: 
ERROR: column "is_directory" is of type integer but expression is of type 
boolean
     Hint: You will need to rewrite or cast the expression.
     Position: 192
   ### The error may exist in 
org/apache/dolphinscheduler/dao/mapper/ResourceMapper.java (best guess)
   ### The error may involve 
org.apache.dolphinscheduler.dao.mapper.ResourceMapper.insert-Inline
   ### The error occurred while setting parameters
   ### SQL: INSERT INTO t_ds_resources  ( file_name, size, create_time, 
description, full_name, alias, update_time, pid, type, user_id, is_directory )  
VALUES  
   ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )
   ### Cause: org.postgresql.util.PSQLException: ERROR: column "is_directory" 
is of type integer but expression is of type boolean
     Hint: You will need to rewrite or cast the expression.
     Position: 192
   ; bad SQL grammar []; nested exception is org.postgresql.util.PSQLException: 
ERROR: column "is_directory" is of type integer but expression is of type 
boolean
   ```
   
   ### What you expected to happen
   
   need change the field ‘is_directory’ type from int to bool,then ok
   
   ### How to reproduce
   
   when create directory
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   2.0.1
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to