Repository navigation
Try to fix some trash in Disks and part moves - #51135
Conversation
|
This is an automated comment for commit 220520c with description of existing statuses. It's updated for the latest CI running
|
| // #ifdef ABORT_ON_LOGICAL_ERROR | ||
| // try | ||
| // { | ||
| // throw; | ||
| // } | ||
| // catch (const std::logic_error &) |
There was a problem hiding this comment.
std::logic_error indicates a bug just like our LOGICAL_ERROR, but it is thrown in the CI sometimes, so it's commented out. I will try to enable it in another PR
* [GLUTEN-1632][CH]Daily Update Clickhouse Version (20230707) * fix NPE due to ClickHouse/ClickHouse#51135 --------- Co-authored-by: kyligence-git <[email protected]> Co-authored-by: Chang Chen <[email protected]>
| String relative_path_to = validatePathAndGetAsRelative(path_to); | ||
|
|
||
| disk_from->copy(relative_path_from, disk_to, relative_path_to); | ||
| disk_from->copyDirectoryContent(relative_path_from, disk_to, relative_path_to); |
There was a problem hiding this comment.
This changes the behavior of the copy command.
Before it was cp foo bar
After it will do cp foo bar/foo
Was that the intention?
There was a problem hiding this comment.
Indeed. I've added one in #51448, that how I found it.
|
We can remove the |
It can be useful to access disks like clickhouse does (since S3/GCS has some implementation quirks). So I'm suggesting to keep it. After #51448 there will be a test, and write something generic is not a big deal. @tavplubix you said that you going to fix this, can you add a test as well then? |
In ClickHouse#51135 the behavior of the `clickhouse-disks copy` had been changed, let's temporary update the test (and continue discussion about this change in that PR). Signed-off-by: Azat Khuzhin <[email protected]>
Changelog category (leave one):
Partially fixes #51087