literals
FloatLiteral
¶
Bases: Literal[float]
Source code in pyiceberg/expressions/literals.py
Literal
¶
Bases: Generic[L]
, ABC
Literal which has a value and can be converted between types.
Source code in pyiceberg/expressions/literals.py
__eq__(other)
¶
Return the equality of two instances of the Literal class.
__ge__(other)
¶
Return if one instance of the Literal class is greater than or equal to another instance.
__gt__(other)
¶
__hash__()
¶
__le__(other)
¶
Return if one instance of the Literal class is less than or equal to another instance.
__lt__(other)
¶
__ne__(other)
¶
__repr__()
¶
StringLiteral
¶
Bases: Literal[str]
Source code in pyiceberg/expressions/literals.py
514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 |
|
literal(value)
¶
Construct an Iceberg Literal based on Python primitive data type.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
value
|
Python primitive type
|
the value to be associated with literal. |
required |
Example
from pyiceberg.expressions.literals import literal.
literal(123) LongLiteral(123)