Skip to content

#42 Simplify Import Paths by Exposing Core Classes at Package Root #43

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions dev/lint-python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -643,26 +643,6 @@ function flake8_check() {
print_function "STAGE" "flake8 checks... [SUCCESS]"
fi
}


# mypy check
function mypy_check() {
print_function "STAGE" "mypy checks"

# the return value of a pipeline is the status of the last command to exit
# with a non-zero status or zero if no command exited with a non-zero status
set -o pipefail

(${MYPY_PATH} --install-types --non-interactive --config-file tox.ini) 2>&1 | tee -a ${LOG_FILE}
TYPE_HINT_CHECK_STATUS=$?
if [ ${TYPE_HINT_CHECK_STATUS} -ne 0 ]; then
print_function "STAGE" "mypy checks... [FAILED]"
# Stop the running script.
exit 1;
else
print_function "STAGE" "mypy checks... [SUCCESS]"
fi
}
###############################################################All Checks Definitions###############################################################

# CURRENT_DIR is "paimon-python/dev/"
Expand Down
32 changes: 31 additions & 1 deletion pypaimon/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,35 @@
#################################################################################

from .api import Schema
from .py4j import Catalog
from .py4j import CommitMessage
from .py4j import Predicate
from .py4j import PredicateBuilder
from .py4j import ReadBuilder
from .py4j import RowType
from .py4j import Split
from .py4j import Table
from .py4j import BatchTableCommit
from .py4j import TableRead
from .py4j import TableScan
from .py4j import Plan
from .py4j import BatchTableWrite
from .py4j import BatchWriteBuilder

__all__ = ['Schema']
__all__ = [
'Schema',
'Catalog',
'CommitMessage',
'Predicate',
'PredicateBuilder',
'ReadBuilder',
'RowType',
'Split',
'Table',
'BatchTableCommit',
'TableRead',
'TableScan',
'Plan',
'BatchTableWrite',
'BatchWriteBuilder'
]
3 changes: 2 additions & 1 deletion pypaimon/py4j/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

from .util import constants
from .java_implementation import \
(Catalog, Table, ReadBuilder, TableScan, Plan, Split,
(Catalog, Table, ReadBuilder, TableScan, Plan, RowType, Split,
TableRead, BatchWriteBuilder, BatchTableWrite, CommitMessage,
BatchTableCommit, Predicate, PredicateBuilder)

Expand All @@ -29,6 +29,7 @@
'ReadBuilder',
'TableScan',
'Plan',
'RowType',
'Split',
'TableRead',
'BatchWriteBuilder',
Expand Down