datafusion-contrib / datafusion-tui Goto Github PK
View Code? Open in Web Editor NEWTerminal based, extensible, interactive data analysis tool using SQL
License: Apache License 2.0
Terminal based, extensible, interactive data analysis tool using SQL
License: Apache License 2.0
First of all, thanks for creating and working on this project! A good graphical interface will definitely help a lot of people in the future!
Now, to my issues. While playing around, there were several situations when the application crashed/or behaved wrongly/not-expected in the editor window.
Crashes:
Wrong behavior:
Usability issues:
While all issues except for non-ascii handling are not that big, handling non-ascii characters requires a re-implementation of almost all functions of the Editor object because direct changing of a byte inside the String object does not work anymore and one has to use Chars instead.
This being said, I can offer an PR where above mentioned issues are addressed and appropriate unit tests are provided. But of course only if contribution to this project is desired. Alternatively, I could provide an PR with unit tests only. Whatever you prefer.
Best regards
Happened after moving from second line to first line
When entering a single line of text, creating multiple new lines with enter, and then backspace to first line. Cursor also doesnt show at right position when going back to first line.
j and k perhaps, taking influence from vim
Edit
mode of a SQL Editor and ensure that the Input
reflects these inputs. It is very context dependent. For example different keys have different expected behavior depending on where they are on the editor (i.e. you cant go up a row when already on the top row).
edit_mode_handler
has all supported keys. Look at these keys and coming up with the attendant tests is a good place to start.Input
directly but also, and its probably better, on Key
events.QueryResult
with the appropriate QueryResultMeta
data.
.datafusion
directory is critical in making dft
a powerful and reproducible tool for data analysis. It has the .datafusion/.datafusionrc
file for DDL and the .datafusion/object_stores
and .datafusion/table_providers
for extending the core with custom data sources (i.e. S3, Bigtable, HTTP APIs). These extensions will often be feature gated.
We should add some test data to the repo to enable testing queries in CI
To enable things like using ObjectStore.list_file
to see file names that you can register. Allows you to stay in context / on terminal if you dont know exact name of file you are looking to use.
so that it's easier to install and use for end users
Add ~/.datafusion/table_providers/bigtable.json
which stores configuration options to create TableProvider
and add optional BigTable
feature. Tables defined in bigtable.json
are loaded at startup.
Config fields comes from the below plus a table name field.
let bigtable_datasource = BigtableDataSource::new(
"emulator".to_owned(), // project
"dev".to_owned(), // instance
"weather_balloons".to_owned(), // table
"measurements".to_owned(), // column family
vec!["_row_key".to_owned()], // table_partition_cols
"#".to_owned(), // table_partition_separator
vec![Field::new("pressure", DataType::Utf8, false)], // qualifiers
true, // only_read_latest
).await.unwrap();
After #20
I wonder if one needs a semicolon at all. Right now, the editor always contains a single query and unless this changes in the future, having a semicolon is only required to recognize that the user wants to execute a query. Thinking about other tools, the same problem is often solved by using another key combination e.g. "shift+enter". Could that maybe be a more user-friendly solution?
On the pro-side, if chosen carefully, this "execute query" key combination could be used in the normal and edit modes such that the users will do less mistakes.
On the contra-side, the complexity of key handling increases.
How do you see it?
Originally posted by @seryj in #73 (comment)
Config held in ~/.datafusion/table_providers/api.json
Error description
When executing an invalid query there is no feedback to the user that something went wrong. The result tab just shows the result of previous query. Also in the log tab, there is no indication that something went wrong.
An invalid query can be
Expected behavior
Some kind of error message/warning. Maybe for beginning, it is possible to show the error message from DataFusion itself?
Show new lines / tabs correctly
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.