zui icon indicating copy to clipboard operation
zui copied to clipboard

A pool with this name already exists

Open SoftTools59654 opened this issue 2 years ago • 1 comments

During import, the following error message is issued

Of course in some cases

image

SoftTools59654 avatar Dec 20 '23 18:12 SoftTools59654

@SoftTools59654: I don't doubt that you could be seeing a bug of some kind, but I can't seem to reproduce it based on the information you've shared here thus far. The video below was taken with Zui v1.5.0 on Windows and shows all the behaviors I can reproduce regarding possible clashing pool names and how Zui handles them.

In summary, assuming a CSV input file named csv.1 such as shown in your screenshot:

  1. Initial drag of the file into Zui results in the creation of a pool csv.1 that matches the filename, as expected.
  2. Dragging the same file into Zui again while maintaining the default behavior of pool name "Derive from filename..." results in the created pool being named csv.1_1 to avoid clashing with the existing pool csv.1.
  3. Dragging the same file into Zui again while specifically specifying the pool name csv.1 results in the expected error message "A pool with this name already exists", giving the user the opportunity to pick a non-conflicting name.

https://github.com/brimdata/zui/assets/5934157/d7a84464-1fef-4fd6-95e5-216c8934ad94

If what you're seeing matches the above behavior, can you describe which of those is unexpected or undesirable for you? Or if you're seeing a different behavior than shown/described above, can you provide detailed steps to reproduce the problem? Thanks.

philrz avatar Dec 22 '23 19:12 philrz