Jeff Chiang

Results 15 comments of Jeff Chiang

> Here is my demonstration. ``` . ├── Cargo.lock ├── Cargo.toml ├── bar │   ├── Cargo.toml │   ├── benches │   │   └── my_bench.rs │   └── src │   └── main.rs ├──...

`difftastic` uses extension to specify the language. You may use `difft --language el` to specify Emacs Lisp. ``` --language Override language detection. Inputs are assumed to have this file extension....

So there are two solutions for this. 1. Clone the repository without `--depth` option. 2. after cloning with `git clone --depth`, just move files into the private repo directory (but...

Maybe we can also update the `README.md` to include this existing feature because I notice that now there is words on it. From the view of a new user, I...

I'd like to have a try if it has not been assigned to someone yet or if someone has been already working on this then please let me know. When...

For example, the table options has been defined as a `struct` in `src/table/src/requests.rs` but I've got no idea of those option fields for `DatabaseOptions`. https://github.com/GreptimeTeam/greptimedb/blob/c4798d191348d51e13c90fa5c2e3cedf72c2d42a/src/table/src/requests.rs#L68-L78

Currently I extends the `CREATE DATABASE` to support options by making use of the `parse_options` and the keyword `WITH` provided by `sqlparser` since it's more convenient than defining new keywords...

I'm also planning to implement displaying database options in `SHOW DATABASES` statement. But I am confused about the implementation approaches. Does the syntax need to be extended as `SHOW DATABASES...

> @mango7404 应急小白办法: 它说"没文件"就先"有文件", 上传空文件是行的, 再上传文件取代空文件, 200 OK, processing action... 确实可行👍的方法。 看起来错误不在于代码,而是[百度开放平台pcs](https://openapi.baidu.com/wiki/index.php?title=docs/pcs/rest/file_data_apis_list#.E5.88.86.E7.89.87.E4.B8.8A.E4.BC.A0.E2.80.94.E6.96.87.E4.BB.B6.E5.88.86.E7.89.87.E5.8F.8A.E4.B8.8A.E4.BC.A0)的接口的处理逻辑发生了变化,因为之前很长一段时间分片上传时没有这种情况发生。另外,而按照现在[百度网盘开放平台文件上传文档](https://pan.baidu.com/union/document/upload#通用参数)的说法:```文件上传分为三个阶段:预上传、分片上传、创建文件。只有完成这三步,才能将文件上传到网盘。```(虽然现在这个开放平台并不对个人用户开放) 我这里为了避免每次都需要手动操作,就稍微修改下源码。 ### 添加一段预上传的逻辑处理 通过分片上传新文件时,分片合并阶段百度云端并没有实际的文件导致出错,因此可以采取预上传的思路,只要在分片合并之前上传一个同名空文件来简单修复这个bug。 在源文件bypy.py的[1548L](https://github.com/houtianze/bypy/blob/master/bypy/bypy.py#L1548)前添加一段上传同名空文件的逻辑处理即可。 ```python ... # workaround for issue#522 pars = { 'method' : 'upload', 'path'...

> @tizee 大侠帮我看看 #524 这个问题有没办法解决,感觉像是软件读取到的本地和远程文件MD5不同造成的,谢谢啦~ 🤔实际上我也遇到这个问题,根据代码中的注释,看起来百度云接口返回的md5与本地不 不一致是[百度云方面的问题](https://github.com/houtianze/bypy/blob/master/bypy/bypy.py#L10)。 本来打算pull request修复这个分片合并新文件的bug,但是运行测试脚本时发现non-slicing uploading(普通方式上传单个文件)用的a.txt的md5和接口返回的md5不一致,导致第一个测试无法通过(虽然已经成功上传到百度云)。让人疑惑的地方是,从百度云下载之前上传的a.txt的md5与原来本地的a.txt的md5一致(linux环境下使用md5sum得到),也与调试信息中的本地文件md5一致,这让我怀疑是百度云的md5算法的问题🧐。 #524 的问题我看了下[syncup函数](https://github.com/houtianze/bypy/blob/master/bypy/bypy.py#L2889). ```python ... def syncup(self, localdir = '', remotedir = '', deleteremote = False): ''' Usage: syncup [localdir] [remotedir]...