Skip to content

Expand tests on table#12

Merged
simba-git merged 18 commits intodevelopfrom
feature/simba/table-tests
Jul 6, 2020
Merged

Expand tests on table#12
simba-git merged 18 commits intodevelopfrom
feature/simba/table-tests

Conversation

@simba-git
Copy link

No description provided.

Simba added 7 commits June 24, 2020 10:51
We are also adding table tests to that file, this makes the distinction
clearer.
It's far more typical to import pandas as pd.
This is a simple table with two columns, one form 1-26 and another from
a-z. It'll be used to setup the initial simple tests. The lookup test
is added here as well.
We used to set the PYTHONPATH before we started to install the local
client using pip. We commented out the old command.
If the pd.Series passed to Column isn't named the same, many operations
fail. We now check and set it correctly.
The Table API is easier to implement on a big data processor if its
immutable.
Adds 3 merge tests:
1) Merge by both index
2) Merge by left column value on right column index
3) Merge with a rename (columns can only be renamed this way)

The test fixtures are slightly changed to add a third column to make
testing clearer.
@codecov
Copy link

codecov bot commented Jul 1, 2020

Codecov Report

Merging #12 into develop will increase coverage by 0.21%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop      #12      +/-   ##
===========================================
+ Coverage    92.85%   93.07%   +0.21%     
===========================================
  Files            4        4              
  Lines          252      260       +8     
  Branches        22       24       +2     
===========================================
+ Hits           234      242       +8     
  Misses          15       15              
  Partials         3        3              
Flag Coverage Δ
#unittests 93.07% <100.00%> (+0.21%) ⬆️
Impacted Files Coverage Δ
client/streamsql/local.py 95.45% <100.00%> (+0.29%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3443fcd...3271ffc. Read the comment docs.

Simba added 11 commits July 1, 2020 08:58
A table's name shouldn't be dynamically changed since Tables are
immutable.
A merge results in a new table, if a name is not provided then one
is generated. This tests for that behavior.
It previously didn't change and check the new name.
The Github CI was sometimes failing on Mac OS since it couldn't find
YAPF. This Makefile leans into using venv directly.
Windows venv bin directory is named Scripts. Beyond that, on Windows,
the Makefile was overriding the PYCMD variable instead of SYS_PYCMD.
venv was unset in the Makefile in a prior commit on accident.
PYCMD depends on VENV_BIN, but was being set prior to it
Windows venv does not have the python3 command, and the other OS
use Python 3 with the python command. It's easier to just use python
when using venv.
These commands were not supposed to be added. They are used to push
up the website to GCP Kubernetes.
When install yapf on Mac, it's not included in the venv bin by default.
Using the python command to call yapf works cross platform. We also do
it to coverage to keep things consistent.
@simba-git simba-git merged commit bc3f51b into develop Jul 6, 2020
@simba-git simba-git deleted the feature/simba/table-tests branch July 6, 2020 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant